/* Hearthbird / Mossy Window site. Palette from the studio logo: dusk slate, window cream, hearth rust,
   moss, bark. Type: Nunito, the game's own UI font (SIL OFL, fonts/OFL.txt). */

@font-face { font-family: "Nunito"; src: url("fonts/Nunito-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/Nunito-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/Nunito-Black.woff") format("woff"); font-weight: 900; font-display: swap; }

:root {
  --dusk: #5B6F80;
  --dusk-deep: #485a6b;
  --cream: #FFF4EA;
  --rust: #B24E1A;
  --moss: #7C8A3C;
  --moss-light: #A4AE58;
  --bark: #3B3326;
  --measure: 34rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bark); }
body {
  margin: 0;
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--cream);
  background: var(--dusk);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--moss-light); outline-offset: 3px; border-radius: 4px; }

/* Header: the studio, small and quiet */
.top { padding: 1.25rem clamp(1.25rem, 5vw, 4rem); }
.studio { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font-weight: 700; }
.studio img { border-radius: 8px; }

/* Hero: the title beside the lit window with the robin on its sill */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: end;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(1rem, 4vw, 3rem) clamp(1.25rem, 5vw, 4rem) 0;
  max-width: 76rem;
  margin: 0 auto;
}
.hero-text { padding-bottom: clamp(2rem, 7vw, 6rem); max-width: var(--measure); }
h1 {
  font-weight: 900;
  font-size: clamp(3.4rem, 9vw, 6.6rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 0 0 0.9rem;
}
.lead { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 700; line-height: 1.25; margin: 0 0 1.25rem; }
.hero-text p { margin: 0 0 1rem; }
.status { color: #dfe6ea; font-size: 1rem; }

.window { position: relative; margin: 0; width: 100%; max-width: 30rem; justify-self: end; }
.window-frame { width: 100%; height: auto; }
.sill {
  position: relative;
  height: clamp(1.6rem, 3.4vw, 2.4rem);
  margin: -2px -6% 0;
  background: var(--bark);
  border-radius: 0.6rem 0.6rem 0 0;
}
.moss { position: absolute; left: 0; right: 0; bottom: 100%; width: 100%; height: 1.1rem; }
.robin {
  position: absolute;
  width: 60%;
  height: auto;
  left: 4%;
  bottom: calc(clamp(1.6rem, 3.4vw, 2.4rem) - 0.4%);
  filter: drop-shadow(0 6px 6px rgba(59, 51, 38, 0.35));
  animation: land 900ms cubic-bezier(.2, .8, .3, 1.15) 250ms both;
}
@keyframes land {
  from { transform: translate(-30%, -70%) rotate(-8deg); opacity: 0; }
  60% { opacity: 1; }
  to { transform: none; opacity: 1; }
}

/* What you do together: on the cream of the window frame, in bark brown */
.together {
  background: var(--cream);
  color: var(--bark);
  padding: clamp(3rem, 7vw, 6rem) clamp(1.25rem, 5vw, 4rem);
}
.together > * { max-width: 68rem; margin-left: auto; margin-right: auto; }
h2 { font-weight: 900; font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 2rem; }
.verbs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.25rem clamp(2rem, 5vw, 4.5rem);
  margin-top: 0;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.verbs div { border-top: 4px solid var(--moss); padding-top: 0.9rem; max-width: var(--measure); }
.verbs dt { font-weight: 900; font-size: 1.35rem; color: var(--rust); margin-bottom: 0.35rem; }
.verbs dd { margin: 0; }

.room { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.room img { width: 100%; height: auto; }
.room p { font-size: clamp(1.25rem, 2.2vw, 1.55rem); font-weight: 700; line-height: 1.4; margin: 0; max-width: 26rem; }

/* Follow: moss green, the links as big plain words */
.follow {
  background: var(--moss);
  color: var(--cream);
  padding: clamp(3rem, 7vw, 5rem) clamp(1.25rem, 5vw, 4rem);
}
.follow > * { max-width: 68rem; margin-left: auto; margin-right: auto; }
.follow h2 { margin-bottom: 0.6rem; }
.follow p { margin-top: 0; margin-bottom: 1.6rem; max-width: var(--measure); margin-left: auto; margin-right: auto; }
.follow > p { margin-left: auto; margin-right: auto; max-width: 68rem; }
.links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; }
.links a {
  display: inline-block;
  font-weight: 900;
  font-size: 1.3rem;
  text-decoration: none;
  padding: 0.55rem 1.2rem;
  border: 3px solid var(--cream);
  border-radius: 999px;
  transition: background-color 150ms, color 150ms;
}
.links a:hover { background: var(--cream); color: var(--moss); }
.links a:focus-visible { outline-color: var(--bark); }

.bottom {
  background: var(--bark);
  color: #d9d5cc;
  font-size: 0.95rem;
  padding: 2rem clamp(1.25rem, 5vw, 4rem);
}
.bottom p { margin: 0.2rem auto; max-width: 68rem; }

@media (max-width: 52rem) {
  .hero { grid-template-columns: 1fr; }
  .hero-text { padding-bottom: 0; }
  .window { justify-self: center; max-width: 24rem; }
  .verbs, .room { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .robin { animation: none; }
  .links a { transition: none; }
}
