:root {
  color-scheme: light;

  --paper: #ede4d6;
  --paper-light: #f6f1e8;
  --ink: #1f1814;
  --muted: #6c5a4d;
  --line: #cbb9a8;

  --espresso: #3b2418;
  --espresso-deep: #24150f;
  --milk: #dcc1a3;
  --foam: #f3e6d5;

  --green: #72856e;
  --orange: #b86b33;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

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

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

  background: var(--paper);
  color: var(--ink);

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  font-size: 18px;
  line-height: 1.6;
}

a {
  color: inherit;
}

button {
  font: inherit;
}


/* header */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding:
    max(18px, env(safe-area-inset-top))
    max(28px, env(safe-area-inset-right))
    18px
    max(28px, env(safe-area-inset-left));

  border-bottom: 1px solid var(--line);

  background: rgba(237, 228, 214, 0.92);

  position: sticky;
  top: 0;
  z-index: 20;

  backdrop-filter: blur(8px);
}

.site-name {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
}

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

nav a {
  font-size: 14px;
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
}


/* shared */

.eyebrow,
.section-kicker,
.small-title,
.section-label p,
.fact-label {
  margin: 0;

  color: var(--orange);

  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

.section-label {
  display: grid;
  grid-template-columns: 60px 1fr;
  margin-bottom: 45px;
}

.section-label span {
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
}

h1,
h2 {
  letter-spacing: -0.06em;
}


/* hero */

.hero {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(40px, 8vw, 110px);
  align-items: center;

  min-height: 92vh;
  min-height: 92dvh;

  padding:
    75px
    clamp(24px, 7vw, 110px)
    85px;
}

.hero-copy h1 {
  margin: 18px 0 34px;

  font-size: clamp(72px, 13vw, 168px);
  line-height: 0.86;
}

.intro {
  max-width: 560px;
  margin: 0;

  font-size: clamp(21px, 2.5vw, 28px);
  line-height: 1.45;
}

.hero-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 28px;
}

.cup-mark {
  width: min(360px, 82%);
  aspect-ratio: 1;

  border-radius: 50%;

  background:
    radial-gradient(circle at center, var(--foam) 0 30%, transparent 31%),
    radial-gradient(circle at center, #8f5a31 0 44%, #5e361f 45% 54%, transparent 55%),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.18) 0 58%, transparent 59%);

  border: 1px solid rgba(59, 36, 24, 0.12);
}

.side-note {
  width: min(320px, 100%);
  padding-top: 18px;

  border-top: 1px solid var(--ink);
}

.side-note span {
  display: block;
  margin-bottom: 10px;

  color: var(--muted);
  font-size: 12px;
}

.side-note p {
  margin: 0 0 8px;

  font-size: 20px;
}


/* current bag */

.current-bag {
  padding:
    100px
    clamp(24px, 7vw, 110px);
  background: var(--paper-light);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.bag-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr 0.7fr;
  gap: 24px;
}

.bag-card,
.tasting-card,
.fact-card {
  min-height: 100%;
  padding: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.34);
}

.bag-card h2 {
  margin: 18px 0 20px;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 0.96;
  font-weight: 600;
}

.bag-copy {
  max-width: 480px;
  margin: 0 0 28px;
}

dl {
  margin: 0;
}

dl div {
  display: grid;
  grid-template-columns: 90px 1fr;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

dt {
  color: var(--muted);
  font-size: 13px;
}

dd {
  margin: 0;
  font-size: 13px;
}

.tasting-card ul {
  margin: 20px 0 0;
  padding-left: 20px;
}

.tasting-card li {
  margin-bottom: 10px;
}

.fact-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  background: var(--espresso);
  color: #f2e4d3;
}

.fact-label {
  color: #d8b183;
}

.fact-card strong {
  color: #fff6ea;
}


/* brew */

.brew-section {
  padding:
    110px
    clamp(24px, 7vw, 110px);
}

.brew-layout {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: clamp(35px, 8vw, 110px);
  align-items: start;
}

.brew-copy h2 {
  margin: 18px 0 28px;
  max-width: 720px;

  font-size: clamp(46px, 8vw, 96px);
  line-height: 0.94;
  font-weight: 600;
}

.brew-copy p:last-child {
  max-width: 520px;
  margin: 0;
  font-size: 22px;
}

.recipe-card {
  padding: 24px;
  border: 1px solid var(--ink);
  background: #f8f4ee;
}

.recipe-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;

  color: var(--muted);
  font-size: 12px;
  text-transform: lowercase;
}

.recipe-card ol {
  margin: 0;
  padding-left: 22px;
}

.recipe-card li {
  margin-bottom: 10px;
}

.timer-button {
  appearance: none;

  margin-top: 26px;
  border: 0;
  padding: 12px 16px;

  background: var(--ink);
  color: #f8f3ea;

  cursor: pointer;
}

.timer-button:hover {
  background: var(--espresso);
}

.timer-status {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
}


/* facts strip */

.facts-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.facts-strip article {
  min-height: 220px;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.facts-strip article:last-child {
  border-right: 0;
}

.facts-strip span {
  display: block;
  margin-bottom: 40px;

  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
}

.facts-strip p {
  margin: 0;
  max-width: 320px;
}


/* log */

.log {
  padding:
    110px
    clamp(24px, 7vw, 110px);
}

.log-heading h2 {
  margin: 18px 0 55px;

  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.94;
  font-weight: 600;
}

.log-list article {
  display: grid;
  grid-template-columns: 110px 1fr 110px;
  gap: 30px;
  align-items: start;

  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.log-list article:last-child {
  border-bottom: 1px solid var(--line);
}

.log-list time {
  color: var(--muted);
  font-size: 13px;
}

.log-list strong {
  display: block;
  margin-bottom: 8px;
  font-size: 21px;
  font-weight: 600;
}

.log-list p {
  margin: 0;
  color: var(--muted);
}

.log-list span {
  color: var(--green);
  font-size: 13px;
  text-align: right;
}


/* journal */

.journal {
  padding:
    110px
    clamp(24px, 7vw, 110px);

  background: var(--espresso-deep);
  color: #f1e3d2;
}

.journal-intro h2 {
  margin: 18px 0 50px;

  font-size: clamp(48px, 8vw, 92px);
  line-height: 0.95;
  font-weight: 600;
}

.journal .section-kicker {
  color: #cda57a;
}

.journal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.journal-grid article {
  min-height: 220px;
  padding: 24px;
  border: 1px solid rgba(255, 234, 210, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.journal-grid span {
  display: block;
  margin-bottom: 18px;

  color: #d8b183;
  font-size: 12px;
  font-weight: 700;
  text-transform: lowercase;
}

.journal-grid p {
  margin: 0;
}


/* shelf */



.shelf-heading h2 {
  margin: 18px 0 44px;

  font-size: clamp(46px, 8vw, 92px);
  line-height: 0.95;
  font-weight: 600;
}

.shelf-items p {
  margin: 0;
  min-height: 120px;

  display: flex;
  align-items: flex-end;

  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.shelf-items p:nth-child(4n) {
  border-right: 0;
}

/* pantry */

.pantry {
  padding:
    110px
    clamp(24px, 7vw, 110px)
    130px;

  background: #d8c1a2;
  color: #251a13;
}

.pantry-heading {
  margin-bottom: 55px;
}

.pantry-heading .section-kicker {
  color: #7d4a2c;
}

.pantry-heading h2 {
  margin: 14px 0 0;

  font-size: clamp(55px, 9vw, 108px);
  font-weight: 600;
  line-height: 0.9;
}


.cupboard {
  width: min(920px, 100%);
  margin: 0 auto;

  padding:
    35px
    40px
    22px;

  border:
    16px solid #5c3825;

  background:
    linear-gradient(
      90deg,
      #8d5e3d,
      #a87851 48%,
      #845536
    );

  box-shadow:
    inset 0 0 35px rgba(45, 25, 15, 0.35),
    0 20px 50px rgba(57, 31, 18, 0.16);
}


.cupboard-top,
.cupboard-middle,
.cupboard-bottom {
  min-height: 190px;

  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 20px;

  padding:
    15px
    12px
    0;
}


.wood-shelf {
  height: 18px;

  margin: 8px -18px 0;

  border-top: 2px solid #4a2b1c;

  background:
    linear-gradient(
      to bottom,
      #70452d,
      #4d2e1f
    );

  box-shadow:
    0 7px 10px rgba(35, 19, 11, 0.3);
}


/* jars */

.jar {
  position: relative;

  width: 105px;

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

  padding: 20px 10px 12px;

  border:
    2px solid
    rgba(255, 247, 226, 0.55);

  border-radius:
    10px 10px 15px 15px;

  background:
    linear-gradient(
      90deg,
      rgba(255,255,255,0.22),
      rgba(109,75,51,0.20),
      rgba(255,255,255,0.12)
    );

  text-align: center;
}

.jar.tall {
  height: 145px;
}

.jar.short {
  height: 110px;
}

.jar .lid {
  position: absolute;

  left: -3px;
  right: -3px;
  top: -12px;

  height: 17px;

  border-radius: 4px;

  background: #38332d;
}

.jar strong {
  font-size: 12px;
}

.jar small {
  margin-top: 5px;

  color: #4c3425;

  font-size: 10px;
}


/* coffee bags */

.coffee-bag {
  position: relative;

  width: 125px;
  height: 155px;

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

  padding: 15px;

  clip-path:
    polygon(
      5% 8%,
      48% 3%,
      96% 8%,
      100% 100%,
      0 100%
    );

  color: #f5ead9;
}

.green-bag {
  background: #52664b;
}

.orange-bag {
  height: 135px;

  background: #a65d34;
}

.coffee-bag span {
  font-size: 13px;
  font-weight: bold;
}

.coffee-bag small {
  margin-top: 4px;

  font-size: 9px;
}


/* tin */

.tin {
  width: 95px;
  height: 105px;

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

  border:
    2px solid #aaa59a;

  background:
    linear-gradient(
      90deg,
      #9b9a91,
      #dad7cb 45%,
      #929189
    );

  color: #302b26;

  text-align: center;
}

.tin span {
  font-size: 12px;
  font-weight: bold;
}

.tin small {
  margin-top: 5px;
}


/* mugs */

.mug {
  position: relative;

  width: 92px;
  height: 82px;

  border-radius:
    4px 4px 24px 24px;

  background: #eee6d8;
}

.mug::after {
  content: "";

  position: absolute;

  right: -28px;
  top: 17px;

  width: 31px;
  height: 40px;

  border:
    9px solid #eee6d8;

  border-left: 0;

  border-radius:
    0 25px 25px 0;
}

.mug-two {
  transform:
    scale(0.86);

  background: #38534d;
}

.mug-two::after {
  border-color: #38534d;
}


/* bean jar */

.glass-jar {
  width: 105px;
  height: 125px;

  display: flex;
  align-items: flex-end;
  justify-content: center;

  padding-bottom: 12px;

  border:
    2px solid
    rgba(255,255,255,0.55);

  border-radius: 8px 8px 13px 13px;

  background:
    linear-gradient(
      to top,
      #493023 0 58%,
      rgba(255,255,255,0.12) 59%
    );

  color: #e9d4b9;

  font-size: 11px;
}


/* box */

.small-box {
  width: 90px;
  height: 120px;

  padding: 18px 12px;

  background: #d5c6ab;
  color: #40372d;

  font-size: 18px;
  font-weight: bold;
}

.small-box small {
  font-size: 11px;
}


/* kettle */

.kettle-shape {
  position: relative;

  width: 180px;
  height: 140px;
}

.kettle-body {
  position: absolute;

  left: 35px;
  bottom: 0;

  width: 110px;
  height: 92px;

  border-radius:
    40% 40% 25% 25%;

  background:
    linear-gradient(
      100deg,
      #343a3a,
      #68706f 50%,
      #2d3232
    );
}

.kettle-spout {
  position: absolute;

  left: 0;
  top: 43px;

  width: 58px;
  height: 18px;

  transform:
    rotate(-18deg);

  border-radius: 20px;

  background: #4b5251;
}

.kettle-handle {
  position: absolute;

  right: 1px;
  top: 18px;

  width: 70px;
  height: 82px;

  border:
    10px solid #303534;

  border-left: 0;

  border-radius:
    0 50px 50px 0;
}


/* grinder */

.grinder-shape {
  position: relative;

  width: 95px;
  height: 150px;
}

.grinder-top {
  position: absolute;

  left: 18px;
  top: 0;

  width: 60px;
  height: 62px;

  clip-path:
    polygon(
      14% 0,
      86% 0,
      100% 100%,
      0 100%
    );

  background: #292725;
}

.grinder-body {
  position: absolute;

  left: 9px;
  bottom: 0;

  width: 78px;
  height: 93px;

  border-radius:
    7px 7px 15px 15px;

  background: #1d1c1b;
}


/* the escaped beans */

.forgotten {
  width: 230px;

  padding-bottom: 15px;

  color: #d6bea0;

  font-size: 10px;
}

.forgotten span {
  display: block;

  margin-bottom: 17px;
}

.forgotten i {
  display: inline-block;

  width: 15px;
  height: 10px;

  margin-right: 14px;

  transform:
    rotate(24deg);

  border-radius: 50%;

  background: #392319;
}

.forgotten i:nth-child(2) {
  transform:
    rotate(-17deg)
    translateY(5px);
}

.forgotten i:nth-child(3) {
  transform:
    rotate(63deg)
    translateY(-3px);
}


/* cup ending */

.coffee-ending {
  position: relative;

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

  display: flex;
  align-items: flex-end;
  justify-content: center;

  overflow: hidden;

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

  background:
    linear-gradient(
      to bottom,
      #dce2dc 0%,
      #e8e5dc 63%,
      #b99c7b 63%,
      #9b7859 100%
    );
}


.final-cup {
  position: relative;

  width: min(
    520px,
    90vw
  );

  height: 590px;
}


/* steam text */

.steam-message {
  appearance: none;

  position: absolute;

  left: 50%;
  top: 0;

  width: 340px;
  height: 320px;

  transform:
    translateX(-50%);

  border: 0;
  padding: 0;

  background: transparent;

  color: #564e46;

  cursor: pointer;
}

.steam {
  position: absolute;

  display: block;

  white-space: nowrap;

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

  font-style: italic;

  opacity: 0.74;

  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.steam-one {
  left: 82px;
  top: 190px;

  font-size: 20px;

  transform:
    rotate(-13deg);
}

.steam-two {
  left: 127px;
  top: 116px;

  font-size: 23px;

  transform:
    rotate(9deg);
}

.steam-three {
  left: 34px;
  top: 33px;

  font-size: 28px;

  transform:
    rotate(-6deg);
}

.steam-message:hover .steam {
  opacity: 1;
}

.steam-message:hover .steam-one {
  transform:
    rotate(-13deg)
    translateY(-3px);
}

.steam-message:hover .steam-two {
  transform:
    rotate(9deg)
    translateY(-5px);
}

.steam-message:hover .steam-three {
  transform:
    rotate(-6deg)
    translateY(-7px);
}


/* cup */

.cup {
  position: absolute;

  left: 50%;
  bottom: 43px;

  width: 265px;
  height: 180px;

  transform:
    translateX(-50%);

  border-radius:
    8px 8px 75px 75px;

  background:
    linear-gradient(
      100deg,
      #ece5d8,
      #fffaf1 55%,
      #d8ccbb
    );

  box-shadow:
    0 18px 28px
    rgba(67, 45, 29, 0.18);
}

.cup::before {
  content: "";

  position: absolute;

  left: 7px;
  right: 7px;
  top: -13px;

  height: 30px;

  border-radius: 50%;

  background: #ede4d5;
}

.coffee-surface {
  position: absolute;

  z-index: 2;

  left: 15px;
  right: 15px;
  top: -7px;

  height: 22px;

  border-radius: 50%;

  background:
    radial-gradient(
      ellipse at 42% 40%,
      #8b5635,
      #5b321f 58%,
      #382014
    );
}

.cup-handle {
  position: absolute;

  right: -67px;
  top: 38px;

  width: 82px;
  height: 91px;

  border:
    22px solid #e5dbcc;

  border-left: 0;

  border-radius:
    0 50px 50px 0;
}

.saucer {
  position: absolute;

  left: 50%;
  bottom: 20px;

  width: 355px;
  height: 43px;

  transform:
    translateX(-50%);

  border-radius: 50%;

  background:
    linear-gradient(
      to bottom,
      #eee5d8,
      #cdbfac
    );

  box-shadow:
    0 12px 20px
    rgba(67,45,29,0.14);
}


/* phone */

@media (max-width: 760px) {
  .pantry {
    padding:
      85px
      16px
      100px;
  }

  .cupboard {
    padding:
      26px
      18px
      18px;

    border-width: 11px;
  }

  .cupboard-top,
  .cupboard-middle,
  .cupboard-bottom {
    min-height: 160px;

    gap: 9px;

    transform-origin:
      bottom center;
  }

  .jar {
    width: 78px;
  }

  .jar.tall {
    height: 120px;
  }

  .coffee-bag {
    width: 90px;
    height: 125px;
  }

  .tin {
    width: 68px;
    height: 88px;
  }

  .mug {
    width: 66px;
    height: 62px;
  }

  .mug::after {
    right: -20px;

    width: 23px;
    height: 30px;

    border-width: 7px;
  }

  .glass-jar {
    width: 76px;
    height: 105px;
  }

  .small-box {
    width: 68px;
    height: 100px;

    padding: 12px 8px;

    font-size: 14px;
  }

  .kettle-shape {
    transform:
      scale(0.72);

    transform-origin:
      bottom left;
  }

  .grinder-shape {
    transform:
      scale(0.76);

    transform-origin:
      bottom center;
  }

  .forgotten {
    width: 120px;
  }

  .coffee-ending {
    min-height: 100dvh;
  }

  .final-cup {
    transform:
      scale(0.86);

    transform-origin:
      bottom center;
  }
}

/* ending */


.ending-copy p {
  margin: 0 0 18px;

  font-size: clamp(44px, 8vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}


/* mobile */

@media (max-width: 760px) {
  body {
    font-size: 17px;
  }

  .site-header {
    padding-left: 18px;
    padding-right: 18px;
  }

  nav {
    gap: 12px;
    overflow-x: auto;
    white-space: nowrap;
  }

  .hero,
  .current-bag,
  .brew-section,
  .log,
  .journal,
  .shelf {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 92dvh;
  }

  .hero-side {
    align-items: flex-start;
  }

  .cup-mark {
    width: min(280px, 75vw);
  }

  .section-label {
    grid-template-columns: 35px 1fr;
  }

  .bag-grid,
  .brew-layout,
  .journal-grid {
    grid-template-columns: 1fr;
  }

  .facts-strip {
    grid-template-columns: 1fr;
  }

  .facts-strip article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    min-height: 0;
  }

  .facts-strip article:last-child {
    border-bottom: 0;
  }

  .log-list article {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .log-list span {
    text-align: left;
  }


  .shelf-items p:nth-child(4n) {
    border-right: 1px solid var(--line);
  }

  .shelf-items p:nth-child(2n) {
    border-right: 0;
  }

  .ending {
    padding-left: 20px;
    padding-right: 20px;
  }
}