@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:wght@400;700&display=swap');

:root {
  --paper: #fff3e4;
  --ink: #28231e;
  --muted: #706153;
  --line: #baa994;
  --mono: 'Courier Prime', 'Courier New', monospace;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  -webkit-font-smoothing: antialiased;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%235b3c20' opacity='.035' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px dashed var(--ink); outline-offset: 6px; }
::selection { background: var(--ink); color: var(--paper); }
.wrap { width: min(1180px, calc(100% - 100px)); margin-inline: auto; }
.skip-link { position: fixed; top: 10px; left: 10px; transform: translateY(-150%); z-index: 10; background: var(--paper); padding: 14px; }
.skip-link:focus { transform: translateY(0); }
.site-header { display: flex; justify-content: space-between; align-items: center; min-height: 76px; border-bottom: 3px double var(--ink); gap: 24px; }
.brand { font-size: 31px; font-weight: 700; letter-spacing: -.8px; }
.header-note { font-size: 12px; color: var(--muted); margin: 0; }
main { display: grid; }
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; padding-block: 26px; }
.hero-copy { min-width: 0; }
.eyebrow { font-size: 11px; line-height: 1.6; font-weight: 400; letter-spacing: 1.7px; margin: 0 0 20px; }
h1 { font-size: clamp(64px, 12vh, 108px); font-size: clamp(64px, 12svh, 108px); line-height: .98; letter-spacing: -5px; margin: 0 0 22px; font-weight: 700; }
.title-period { color: #826347; }
.hero-tagline { font-size: 17px; font-weight: 700; line-height: 1.5; margin: 0 0 14px; }
.hero-description { font-size: 15px; line-height: 1.85; max-width: 43ch; margin: 0; color: var(--muted); }
.hero-art {
  min-width: 0;
  margin: 0;
  justify-self: center;
  /* Reserve space for the header, frame and footer. */
  width: min(100%, calc((100vh - 230px) * 2 / 3 + 20px));
  width: min(100%, calc((100svh - 230px) * 2 / 3 + 20px));
}
.photo-frame { padding: 9px; border: 1px solid var(--line); background: #f8edde; transform: rotate(1.5deg); box-shadow: 5px 8px 0 #3827170a; }
.product-photo { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: contain; }
.hero-art figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 9px; padding: 16px 3px 0; letter-spacing: .6px; color: var(--muted); }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding-block: 16px; border-top: 3px double var(--ink); }
.site-footer p { margin: 0; font-size: 10px; line-height: 1.6; color: var(--muted); }

@media (max-width: 1000px) {
  .wrap { width: calc(100% - 64px); }
  .hero { gap: 36px; }
  .hero-tagline { font-size: 15px; }
  .hero-description { font-size: 14px; }
}

/* Short windows and zoomed layouts may scroll rather than clip content. */
@media (min-width: 761px) and (max-height: 650px) {
  .hero { padding-block: 20px; }
  h1 { font-size: 64px; margin-bottom: 16px; }
  .eyebrow { margin-bottom: 14px; }
  .hero-description { font-size: 14px; line-height: 1.7; }
  .hero-art { min-width: 180px; }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { min-height: 72px; gap: 15px; flex-wrap: wrap; padding-block: 16px; }
  .brand { font-size: 24px; }
  .header-note { font-size: 10px; }
  .hero { grid-template-columns: 1fr; padding-block: 32px; gap: 30px; }
  .eyebrow { font-size: 10px; }
  h1 { font-size: clamp(76px, 18vw, 104px); }
  .hero-tagline { font-size: 16px; }
  .hero-description { font-size: 14px; max-width: 46ch; }
  .hero-art { width: min(100% - 8px, 340px); }
  .site-footer { flex-wrap: wrap; gap: 8px 20px; }
}

@media (max-width: 380px) {
  .brand { font-size: 21px; }
  .header-note { font-size: 9px; }
}

/* Keep the website unavailable until an adult visitor confirms their age. */
.site-content {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.site-content[hidden], .age-gate[hidden], .age-actions[hidden] { display: none; }
.age-gate {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
  background-color: var(--paper);
  background-image: inherit;
}
.age-card {
  width: min(100%, 540px);
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--line);
  outline: 1px solid var(--line);
  outline-offset: -8px;
  background: #f8edde;
  box-shadow: 6px 8px 0 #3827170a;
  text-align: center;
}
.age-brand { margin: 0 0 32px; padding-bottom: 24px; border-bottom: 3px double var(--ink); }
.age-card .eyebrow { margin-bottom: 16px; color: var(--muted); }
.age-card h2 { font-size: clamp(25px, 5vw, 34px); line-height: 1.2; font-weight: 400; margin: 0 0 20px; }
.age-card h2:focus { outline: none; }
.age-card > p:not(.brand):not(.eyebrow) { color: var(--muted); font-size: 14px; line-height: 1.7; }
.age-actions { display: grid; gap: 12px; margin-top: 28px; }
.age-actions button {
  width: 100%;
  min-height: 48px;
  padding: 14px 16px;
  border: 1px solid var(--ink);
  border-radius: 0;
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
}
.age-actions .age-secondary { background: transparent; color: var(--ink); }
.age-actions button:hover:not(:disabled) { background: #544333; color: var(--paper); }
.age-actions button:focus-visible { outline: 2px dashed var(--ink); outline-offset: 4px; }
.age-actions button:disabled { opacity: .5; cursor: not-allowed; }
.age-card > .age-footnote { margin: 26px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 10px !important; }
