:root {
  color-scheme: light;

  --parchment: #cbb78e;
  --parchment-light: #ddcda9;
  --parchment-dark: #aa936d;

  --ink: #24190f;
  --faded: #66533d;

  --timber: #4b301d;
  --timber-dark: #291a10;
  --timber-light: #70472a;

  --wine: #642f32;
  --wine-dark: #412023;

  --ale: #9b6b2e;

  --moss: #536044;
  --moss-dark: #333c2b;

  --iron: #383a34;

  --line: rgba(45, 29, 17, 0.38);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
}

html {
  scroll-behavior: smooth;

  background:
    #2a1a10;
}

body {
  min-height: 100vh;
  min-height: 100dvh;

  overflow-x: hidden;

  color: var(--ink);

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 19px;
  line-height: 1.62;

  background:
    radial-gradient(
      circle at 17% 18%,
      rgba(78, 55, 32, 0.11),
      transparent 24%
    ),
    radial-gradient(
      circle at 78% 40%,
      rgba(72, 42, 24, 0.08),
      transparent 27%
    ),
    repeating-linear-gradient(
      0deg,
      rgba(70, 46, 27, 0.025) 0,
      rgba(70, 46, 27, 0.025) 1px,
      transparent 1px,
      transparent 4px
    ),
    var(--parchment);
}

a,
button {
  font: inherit;
}

a {
  color: inherit;
}

button {
  cursor: pointer;
}


/* --------------------------------
   old paper grain
-------------------------------- */

body::before {
  content: "";

  position: fixed;
  inset: 0;

  z-index: 1000;

  pointer-events: none;

  opacity: 0.18;

  background:
    repeating-radial-gradient(
      circle at 30% 20%,
      transparent 0 3px,
      rgba(44, 29, 17, 0.05) 4px,
      transparent 5px 8px
    );
}


/* --------------------------------
   header
-------------------------------- */

.site-header {
  position: sticky;
  top: 0;

  z-index: 40;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  padding:
    max(13px, env(safe-area-inset-top))
    24px
    13px;

  background:
    rgba(58, 38, 23, 0.96);

  border-bottom:
    4px solid #24160d;

  box-shadow:
    0 5px 12px
    rgba(27, 17, 10, 0.26);
}

.brand {
  color: #e0c99d;

  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.04em;

  text-decoration: none;
}

nav {
  display: flex;
  gap: 22px;
}

nav a {
  color: #cdb68d;

  font-size: 14px;

  text-decoration: none;
}

nav a:hover {
  color: #f1ddaf;

  text-decoration: underline;
}


.sky-decor {
  display: none;
}


/* --------------------------------
   shared sections
-------------------------------- */

main {
  position: relative;
}

.household,
.fare,
.tidings,
.yard,
.send-word {
  padding:
    105px
    clamp(20px, 6vw, 90px);
}

.section-head {
  max-width: 820px;

  margin-bottom: 54px;
}

.section-head span {
  color: var(--wine-dark);

  font-size: 13px;
  font-style: italic;
}

.section-head h2 {
  margin:
    9px
    0
    0;

  color: #2b1b11;

  font-size:
    clamp(
      48px,
      8vw,
      94px
    );

  font-weight: 400;
  line-height: 0.91;
  letter-spacing: -0.055em;
}


/* --------------------------------
   hero
-------------------------------- */

.hero {
  min-height: 100vh;
  min-height: 100dvh;

  display: grid;

  grid-template-columns:
    minmax(0, 1.08fr)
    minmax(360px, 0.92fr);

  align-items: stretch;

  background:
    #332116;

  border-bottom:
    10px solid #24160e;
}


.hero-scene {
  position: relative;

  min-height: 100dvh;

  overflow: hidden;

  background:
    #2d281f;
}

.hero-scene img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;

  filter:
    saturate(0.72)
    contrast(1.09)
    sepia(0.18)
    brightness(0.82);
}


.hero-weather {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      to bottom,
      rgba(36, 27, 20, 0.04),
      rgba(32, 20, 13, 0.42)
    ),
    radial-gradient(
      circle at 72% 14%,
      rgba(227, 190, 125, 0.19),
      transparent 21%
    );

  pointer-events: none;
}


.hero-caption {
  position: absolute;

  left: 24px;
  bottom: 25px;

  padding:
    12px
    16px;

  background:
    rgba(37, 23, 13, 0.82);

  color: #e4cca2;

}

.hero-caption span {
  font-size: 12px;
  letter-spacing: 0.11em;
}

.hero-caption p {
  margin:
    4px
    0
    0;

  font-style: italic;
}


.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;

  padding:
    75px
    clamp(30px, 5vw, 70px);

  background:
    radial-gradient(
      circle at 70% 28%,
      rgba(111, 73, 40, 0.23),
      transparent 30%
    ),
    #4b301d;
}


.wood-sign {
  padding: 0;

  border: 0;
  border-radius: 0;

  background: transparent;

  color: #ead5ad;

  box-shadow: none;
}

.kicker {
  margin:
    0
    0
    22px;

  color: #bfa272;

  font-size: 13px;
  font-style: italic;
}

.wood-sign h1 {
  margin: 0;

  color: #f0dab3;

  font-size:
    clamp(
      58px,
      8vw,
      102px
    );

  font-weight: 400;
  line-height: 0.87;
  letter-spacing: -0.065em;
}

.intro {
  max-width: 610px;

  margin:
    32px
    0
    0;

  color: #d9c49e;

  font-size: 20px;
}


.hero-links {
  display: block;

  margin-top: 37px;
}

.hero-links a {
  display: block;

  width: fit-content;

  margin:
    0
    0
    9px;

  padding: 0;

  border: 0;

  background: transparent;

  color: #d8bb88;

  font-size: 15px;

  text-decoration: underline;
}


/* --------------------------------
   household
-------------------------------- */

.household {
  background:
    linear-gradient(
      90deg,
      rgba(90, 60, 34, 0.07),
      transparent 22%
    ),
    var(--parchment);
}

.household-layout {
  display: grid;

  grid-template-columns:
    minmax(0, 1.15fr)
    minmax(300px, 0.85fr);

  gap: 34px;

  align-items: start;
}

.family-image {
  margin: 0;

  min-height: 620px;

  overflow: hidden;

  background: #7f6a4c;

  border:
    8px solid var(--timber-dark);

  box-shadow:
    7px 9px 0
    rgba(72, 45, 25, 0.16);

  transform:
    rotate(-0.4deg);
}

.family-image img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;

  filter:
    saturate(0.75)
    sepia(0.2)
    contrast(1.06);
}


.family-copy {
  padding:
    13px
    8px
    20px
    0;

  border: 0;

  background: transparent;
}

.family-copy p {
  margin:
    0
    0
    28px;
}

.family-copy p:first-child::first-letter {
  float: left;

  margin:
    5px
    8px
    0
    0;

  color: var(--wine);

  font-size: 76px;
  line-height: 0.65;
}


.family-roll {
  margin-top: 62px;

  display: grid;
  grid-template-columns:
    repeat(4, 1fr);

  gap: 0;

  border-top:
    3px double var(--line);

  border-bottom:
    3px double var(--line);
}

.family-roll article {
  min-height: 180px;

  padding:
    23px
    19px;

  border: 0;
  border-right:
    1px solid var(--line);

  background: transparent;
}

.family-roll article:last-child {
  border-right: 0;
}

.family-roll span {
  display: block;

  margin-bottom: 17px;

  color: var(--wine);

  font-size: 22px;
  font-weight: 400;
}


/* --------------------------------
   food
-------------------------------- */

.fare {
  background:
    radial-gradient(
      circle at 80% 40%,
      rgba(87, 49, 29, 0.14),
      transparent 25%
    ),
    #b99d6f;

  border-top:
    8px solid #54351f;

  border-bottom:
    8px solid #54351f;
}


.fare-grid {
  display: grid;

  grid-template-columns:
    1fr
    1fr
    1fr;

  gap: 0;

  border-top:
    2px solid rgba(52, 33, 20, 0.5);

  border-bottom:
    2px solid rgba(52, 33, 20, 0.5);
}


.fare-card {
  min-height: 390px;

  display: flex;
  flex-direction: column;

  padding:
    33px
    29px;

  border: 0;
  border-right:
    1px solid rgba(52, 33, 20, 0.34);

  background: transparent;
}

.fare-card:last-child {
  border-right: 0;
}

.fare-card h3 {
  margin:
    29px
    0
    20px;

  color: #382318;

  font-size: 49px;
  font-weight: 400;
}

.fare-card p {
  margin:
    0
    0
    25px;
}

.fare-card a {
  margin-top: auto;

  color: #4e2e1d;

  text-decoration: underline;
}

.fare-icon {
  position: relative;

  width: 70px;
  height: 70px;

  opacity: 0.75;
}

.loaf-icon {
  width: 75px;
  height: 44px;

  margin-top: 12px;

  border:
    2px solid #634323;

  border-radius:
    50% 50% 36% 36%;

  background: transparent;
}

.loaf-icon::after {
  content: "///";

  position: absolute;

  left: 19px;
  top: 6px;

  color: #634323;

  font-size: 20px;

  transform:
    rotate(-20deg);
}

.ale-icon {
  width: 47px;
  height: 61px;

  border:
    3px solid #674221;

  background: transparent;
}

.ale-icon::after {
  content: "";

  position: absolute;

  right: -17px;
  top: 13px;

  width: 14px;
  height: 26px;

  border:
    3px solid #674221;

  border-left: 0;
}

.barrel-icon {
  width: 58px;
  height: 67px;

  border:
    3px solid #5a3824;

  border-radius: 11px;

  background: transparent;
}

.barrel-icon::before,
.barrel-icon::after {
  background: #5a3824;
}


.fare-note {
  margin-top: 44px;

  padding:
    19px
    0;

  border: 0;
  border-top:
    1px solid rgba(51, 32, 19, 0.45);

  background: transparent;
}

#proverb {
  font-size: 22px;
}

#proverb-button {
  border: 0;
  border-bottom:
    1px solid #4b301d;

  padding:
    2px
    0;

  background: transparent;
}


/* --------------------------------
   outside references
-------------------------------- */

.scholar-links {
  padding:
    27px
    clamp(20px, 6vw, 90px);

  display: flex;
  flex-wrap: wrap;
  gap:
    12px
    30px;

  background:
    #3b2719;

  border-bottom:
    4px solid #24170f;
}

.scholar-links a {
  color: #cbb087;

  font-size: 14px;

  text-decoration: underline;
}


/* --------------------------------
   tidings
-------------------------------- */

.tidings {
  background:
    #d4c099;
}


.tidings-layout {
  display: grid;

  grid-template-columns:
    0.72fr
    1.28fr;

  gap: 45px;

  align-items: center;
}


.roost {
  min-height: 450px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  border: 0;

  background: transparent;
}


/* rough dovecote */

.birdhouse {
  position: relative;

  width: 240px;
  height: 250px;

  transform:
    rotate(-1.2deg);
}

.birdhouse-roof {
  position: absolute;

  left: 0;
  right: 0;
  top: 0;

  height: 72px;

  background:
    #47301f;

  clip-path:
    polygon(
      50% 0,
      100% 100%,
      0 100%
    );
}

.birdhouse-hole {
  position: absolute;

  left: 50%;
  top: 118px;

  width: 61px;
  height: 61px;

  transform:
    translateX(-50%);

  border:
    14px solid #785235;

  border-radius: 50%;

  background:
    #24170f;

  box-shadow: none;
}

.birdhouse::after {
  content: "";

  position: absolute;

  left: 26px;
  right: 26px;
  top: 70px;
  bottom: 0;

  z-index: -1;

  background:
    repeating-linear-gradient(
      90deg,
      #806043 0 28px,
      #6d4d34 28px 31px
    );
}


.messenger-button {
  margin-top: 22px;

  border: 0;
  border-bottom:
    1px solid var(--timber-dark);

  padding:
    3px
    0;

  background: transparent;

  color: #3c281a;
}

.messenger-kind {
  color: #62503d;

  font-style: italic;
}


/* parchment letter */

.letter-board {
  position: relative;

  min-height: 470px;

  padding:
    clamp(
      35px,
      6vw,
      68px
    );

  border: 0;

  background:
    linear-gradient(
      96deg,
      #d7c291,
      #e2cea0 47%,
      #cdb581
    );

  box-shadow:
    7px 10px 0
    rgba(81, 52, 29, 0.15);

  transform:
    rotate(0.35deg);
}

.letter-board::before {
  content: "";

  position: absolute;
  inset: 10px;

  border:
    1px solid
    rgba(83, 55, 31, 0.25);

  pointer-events: none;
}

.letter-mark {
  color: #76512f;
}

.letter-board h3 {
  color: #2d1c11;

  font-size:
    clamp(
      38px,
      6vw,
      70px
    );
}

.letter-board p {
  font-size: 20px;
}

.letter-seal {
  color: var(--wine);

  font-style: italic;
}


/* --------------------------------
   yard photos
-------------------------------- */

.yard {
  background:
    #a89169;

  border-top:
    7px solid #4a301d;
}


.yard-grid {
  display: grid;

  grid-template-columns:
    1.15fr
    0.85fr;

  gap: 13px;
}


.yard-image {
  margin: 0;

  min-height: 370px;

  overflow: hidden;

  border:
    5px solid #49301f;

  background: #75624a;

  box-shadow:
    4px 5px 0
    rgba(41, 25, 15, 0.2);
}

.yard-image:nth-child(2) {
  transform:
    rotate(0.35deg);
}

.yard-image:nth-child(3) {
  transform:
    rotate(-0.5deg);
}

.yard-image.tall {
  min-height: 570px;
}

.yard-image.wide {
  grid-column:
    1 / 3;

  min-height: 400px;
}

.yard-image img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;

  filter:
    sepia(0.14)
    saturate(0.7)
    contrast(1.07)
    brightness(0.91);
}


/* --------------------------------
   correspondence
-------------------------------- */

.send-word {
  min-height: 70vh;

  display: flex;
  flex-direction: column;
  justify-content: center;

  padding-bottom:
    max(
      90px,
      env(safe-area-inset-bottom)
    );

  background:
    linear-gradient(
      to right,
      rgba(70, 42, 24, 0.12),
      transparent 24%
    ),
    #c5ad7e;
}


.post-layout {
  display: grid;

  grid-template-columns:
    1fr
    310px;

  gap: 50px;

  align-items: center;

  padding:
    30px
    0;

  border: 0;
  border-top:
    2px solid rgba(57, 35, 20, 0.45);

  border-bottom:
    2px solid rgba(57, 35, 20, 0.45);

  background: transparent;
}


.post-copy {
  max-width: 680px;
}

.post-copy p {
  font-size: 20px;
}


.post-button {
  position: relative;

  min-width: 0;

  appearance: none;

  border:
    2px solid #351f14;

  padding:
    25px
    20px;

  background:
    #613b27;

  color: #e2c89e;

  font-size: 19px;

  box-shadow:
    5px 6px 0
    #332014;
}

.post-button::before {
  content: "✦";

  display: block;

  margin-bottom: 7px;

  color: #a87b4d;
}

.post-button:hover {
  transform:
    translate(
      2px,
      2px
    );

  box-shadow:
    3px 4px 0
    #332014;
}


/* --------------------------------
   mobile
-------------------------------- */

@media (max-width: 850px) {

  body {
    font-size: 18px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;

    gap: 6px;
  }

  nav {
    width: 100%;

    overflow-x: auto;

    white-space: nowrap;
  }


  .hero {
    min-height: auto;

    grid-template-columns: 1fr;
  }

  .hero-scene {
    min-height: 62dvh;
  }

  .hero-copy {
    padding:
      55px
      21px
      70px;
  }


  .household,
  .fare,
  .tidings,
  .yard,
  .send-word {
    padding-left: 18px;
    padding-right: 18px;
  }


  .household-layout,
  .tidings-layout,
  .post-layout {
    grid-template-columns: 1fr;
  }

  .family-image {
    min-height: 65dvh;
  }


  .family-roll {
    grid-template-columns:
      1fr
      1fr;
  }

  .family-roll article:nth-child(2) {
    border-right: 0;
  }


  .fare-grid {
    grid-template-columns: 1fr;
  }

  .fare-card {
    min-height: 0;

    border-right: 0;
    border-bottom:
      1px solid
      rgba(52, 33, 20, 0.34);
  }


  .fare-note {
    flex-direction: column;
    align-items: flex-start;
  }


  .yard-grid {
    grid-template-columns: 1fr;
  }

  .yard-image.wide {
    grid-column: auto;
  }


  .post-button {
    width: 100%;
  }

}