:root {
  color-scheme: dark;
  background: #000;
  color: #e5d6bc;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

html { background: #000; }
body { margin: 0; min-width: 300px; }
a { color: inherit; }

.skip-link {
  position: absolute;
  top: -5rem;
  left: 1rem;
  z-index: 10;
  padding: .7rem 1rem;
  background: #e5d6bc;
  color: #000;
}
.skip-link:focus { top: 1rem; }

.page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: clamp(1.2rem, 3.2vw, 3rem) clamp(1.2rem, 4vw, 4.2rem);
}

.masthead { display: flex; align-items: center; gap: 2.2rem; }
.wordmark {
  flex: 0 0 auto;
  font-size: clamp(1.05rem, 1.45vw, 1.5rem);
  font-weight: 600;
  letter-spacing: .035em;
  color: #e9d8b6;
}
.dot { color: #bd9958; }
.masthead-line { width: 100%; height: 1px; background: #8d7753; opacity: .42; }
.login-link {
  flex: 0 0 auto;
  margin: -.7rem 0;
  padding: .7rem 0;
  color: #d2b580;
  font-size: .8rem;
  letter-spacing: .06em;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: #6f5b3a;
  text-decoration-thickness: 1px;
  text-underline-offset: .3em;
}
.login-link:hover,
.login-link:focus-visible { color: #fff0d4; text-decoration-color: currentColor; }

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 0 1.25rem;
}
.dog-portrait { width: min(76vw, 650px); margin: 0; line-height: 0; }
.dog-portrait img { width: 100%; height: auto; display: block; }
h1 {
  margin: -1.8rem 0 0;
  text-align: center;
  color: #e7d7b9;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.55rem, 4.2vw, 5rem);
  font-weight: 400;
  line-height: .99;
  letter-spacing: -.045em;
}
h1 em { color: #c8aa70; font-weight: 400; }

.footer {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid #332b1d;
}
.signup { margin: 0 0 1.4rem; color: #ad9d83; font-size: .85rem; line-height: 1.5; }
.breed-list { max-width: 44rem; }
.breed-list h2 {
  margin: 0 0 .65rem;
  color: #a89069;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .21em;
  text-transform: uppercase;
}
.breed-list ul {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem 1.05rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.breed-list li { color: #ad9d83; font-size: .8rem; line-height: 1.5; }
.frontier-link {
  flex: 0 0 auto;
  margin-bottom: .05rem;
  color: #d2b580;
  font-size: .85rem;
  letter-spacing: .025em;
  text-decoration: none;
  border-bottom: 1px solid #6f5b3a;
  padding-bottom: .15rem;
}
.frontier-link:hover,
.frontier-link:focus-visible { color: #fff0d4; border-bottom-color: currentColor; }
:focus-visible { outline: 2px solid #e5c68d; outline-offset: 5px; }

@media (max-width: 680px) {
  .page { min-height: 100svh; }
  .main { padding: 1rem 0 2.4rem; }
  .dog-portrait { width: min(80%, 680px); }
  h1 { margin-top: -.5rem; }
  .footer { align-items: end; gap: 1rem; }
  .breed-list { max-width: 64%; }
}

@media (max-width: 420px) {
  .footer { align-items: start; flex-direction: column; gap: 1.25rem; }
  .breed-list { max-width: 100%; }
  .frontier-link { align-self: flex-end; }
}

@media (max-height: 700px) and (min-width: 681px) {
  .dog-portrait { width: min(57vw, 650px); }
  h1 { font-size: clamp(2.4rem, 4.2vw, 4.6rem); }
}
