:root {
  --ink: #f3eee3;
  --muted: rgba(243, 238, 227, 0.72);
  --paper: #006766;
  --paper-2: #015554;
  --deep: #013e3d;
  --line: rgba(243, 238, 227, 0.16);
  --accent: #e6b228;
  --accent-deep: #d49a14;
  --glow: rgba(230, 178, 40, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Solid page green. A scroll bounce shows this, not the darker end of the gradient. */
  background: var(--paper);
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Outfit, system-ui, sans-serif;
  background: transparent;
  overflow-x: clip;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
}

/* Gradient stays in the viewport. Rubber-banding past it reveals html's --paper. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 88% 12%, var(--glow), transparent 55%),
    radial-gradient(ellipse 55% 45% at 8% 0%, rgba(1, 62, 61, 0.9), transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 55%, var(--deep) 100%);
}

/* Chalk-speck underlay sits behind all content */
#speck-layer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}

.wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.wrap > main {
  flex: 1 0 auto;
}

a {
  color: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0 0;
  position: relative;
  z-index: 2;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  line-height: 1;
}

.brand-text {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.35rem, 3.2vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}

.brand-text em {
  font-style: normal;
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  white-space: nowrap;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.hero {
  min-height: calc(100svh - 5.5rem);
  display: grid;
  align-content: center;
  padding: 3.5rem 0 3rem;
  position: relative;
  overflow: visible;
  gap: 2rem;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
    align-items: center;
    gap: 2rem 2.5rem;
  }
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(28rem, 58vh);
}

.sketch {
  position: relative;
  width: min(100%, 520px);
  margin-inline: auto;
  justify-self: center;
  z-index: 0;
  overflow: visible;
}

.sketch.still {
  width: min(100%, 430px);
}

@media (min-width: 900px) {
  .lede {
    max-width: min(30rem, 36vw);
  }

  .sketch {
    width: min(51vw, 706px);
    justify-self: end;
    margin-inline: 0 -2.5rem;
  }

  .sketch.still {
    width: min(42.2vw, 584px);
  }
}

.sketch canvas,
.sketch img {
  display: block;
  width: 100%;
  height: auto;
  touch-action: manipulation;
}

.sketch canvas {
  aspect-ratio: 1217 / 1023;
}

/* the interactive canvas is only for devices with a mouse; others see the still image */
.sketch canvas {
  display: none;
}

.live-reg .sketch canvas {
  display: block;
}

.live-reg .sketch img {
  display: none;
}

.hero h1 {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.85rem, 4.2vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 clamp(1.5rem, 3.5vh, 2.35rem);
  max-width: 18ch;
  color: var(--ink);
  animation: rise 0.8s ease-out 0.35s both;
}

.lede {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--muted);
  line-height: 1.65;
  max-width: 34rem;
  animation: rise 0.8s ease-out 0.5s both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  animation: rise 0.8s ease-out 0.65s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.8rem 1.25rem;
  border-radius: 2px;
  white-space: nowrap;
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #143028;
}

.btn-primary:hover {
  filter: brightness(1.06);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  background: rgba(243, 238, 227, 0.08);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page {
  padding: 2.5rem 0 4rem;
  min-height: calc(100svh - 8rem);
}

.product-layout {
  display: grid;
  gap: 2rem 2.5rem;
  align-items: start;
}

@media (min-width: 960px) {
  .product-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.85fr);
    gap: 1.25rem 2.5rem;
  }

  .product-intro {
    grid-column: 1;
    grid-row: 1;
  }

  .product-visual {
    grid-column: 2;
    grid-row: 1 / span 2;
    position: sticky;
    top: 4.5rem;
    align-self: start;
    /* Sit mid-column so the slab shares the page with header + feature text */
    margin-top: clamp(4.5rem, 12vh, 7.5rem);
    padding-bottom: 1rem;
  }

  .product-features {
    grid-column: 1;
    grid-row: 2;
  }
}

.product-features .feature-list {
  max-width: none;
}

.product-visual.is-parked {
  display: none;
}

@media (min-width: 960px) {
  .product-layout:has(.product-visual.is-parked) {
    grid-template-columns: minmax(0, 42rem);
  }
}

@media (max-width: 959px) {
  .product-layout {
    gap: 0.5rem;
  }

  .product-features .feature-list {
    margin-top: 0;
  }

  .product-visual {
    width: min(100%, 320px);
    margin-inline: auto;
  }
}

.slab-flip {
  position: relative;
  width: min(100%, 360px);
  margin-inline: auto;
  aspect-ratio: 3 / 4;
  perspective: 1400px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  display: block;
}

.slab-flip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}

.slab-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.85s cubic-bezier(0.4, 0.05, 0.2, 1);
}

.slab-flip.is-back .slab-flip-inner {
  transform: rotateY(180deg);
}

.slab-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 2px;
  overflow: hidden;
}

.slab-face img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.slab-face-back {
  transform: rotateY(180deg);
}

.slab-flip-hint {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .slab-flip-inner {
    transition: none;
  }
}

.section-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.65rem;
}

.section-title {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  max-width: 18ch;
  color: var(--ink);
}

.section-copy {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 36rem;
}

.feature-list {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
  max-width: 40rem;
}

.feature-list li {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.feature-list strong {
  display: block;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.feature-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.closing {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  max-width: 22ch;
  color: var(--ink);
}

.contact-block {
  margin-top: clamp(2rem, 5vh, 3.25rem);
  display: grid;
  gap: 1.15rem;
  max-width: 28rem;
}

.contact-block a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.15rem;
  width: fit-content;
  font-size: 1.15rem;
}

.contact-block a:hover {
  border-bottom-color: var(--accent);
}

.inquire-layout {
  display: grid;
  gap: 2.5rem;
  align-items: start;
  min-height: calc(100svh - 9rem);
  padding-top: clamp(1rem, 4vh, 3rem);
  padding-bottom: clamp(2rem, 6vh, 4rem);
}

@media (min-width: 960px) {
  .inquire-layout {
    grid-template-columns: minmax(16rem, 25rem) minmax(0, 1fr);
    gap: 3rem 2.5rem;
    align-items: center;
  }

  .inquire-visual {
    position: sticky;
    top: 4.5rem;
  }
}

.inquire-copy {
  max-width: 36rem;
}

.inquire-copy .section-kicker {
  margin-bottom: 1rem;
}

.inquire-copy .closing {
  margin-bottom: clamp(1.5rem, 3.5vh, 2.5rem);
  max-width: 18ch;
  line-height: 1.2;
}

.inquire-copy .section-copy {
  margin-bottom: 0;
  line-height: 1.65;
  max-width: 34rem;
}

.inquire-copy .cta-row {
  margin-top: clamp(2.25rem, 5vh, 3.5rem);
}

@media (max-width: 959px) {
  .inquire-visual {
    order: -1;
    width: min(100%, 420px);
    margin-inline: auto;
  }
}

.inquire-sketch {
  position: relative;
  width: min(100%, 480px);
  aspect-ratio: 905 / 843;
  margin-inline: auto;
  pointer-events: none;
}

.inquire-sketch canvas {
  display: block;
  width: 100%;
  height: 100%;
  mix-blend-mode: screen;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
}

@media (max-width: 720px) {
  .wrap {
    width: min(1120px, calc(100% - 1.5rem));
  }

  .site-header {
    gap: 0.65rem;
    align-items: center;
  }

  .brand {
    gap: 0.45rem;
  }

  .brand-text {
    font-size: clamp(1.05rem, 4.6vw, 1.3rem);
  }

  .nav {
    display: flex;
    flex-shrink: 0;
    gap: 0.65rem;
    font-size: 0.82rem;
  }

  .hero {
    min-height: 0;
    align-content: start;
    padding-top: 0.35rem;
    padding-bottom: 2rem;
    gap: 0.15rem;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: 0;
    justify-content: flex-start;
  }

  .sketch,
  .sketch.still {
    order: -1;
    width: min(100%, 420px);
    margin: 0 auto;
    justify-self: center;
    /* No hover on a phone, so crop the lift margin and sit the drawing on the headline. */
    overflow: hidden;
    aspect-ratio: 1007 / 813;
  }

  .sketch canvas {
    width: calc(100% * 1217 / 1007);
    height: auto;
    aspect-ratio: auto;
    margin-left: calc(100% * -105 / 1007);
    margin-top: calc(100% * -105 / 1007);
  }

}

/* Shop on the homepage, register on Buy, at every width. */
.home-register,
.inquire-visual {
  display: none;
}

.home-shop,
.inquire-register {
  display: block;
}

@media (min-width: 900px) {
  .home-shop {
    width: min(100%, 520px);
    justify-self: end;
    margin: 0;
  }

  .home-shop .inquire-sketch {
    width: 100%;
  }

  .sketch.inquire-register {
    width: min(51vw, 706px);
    justify-self: end;
    margin-inline: 0 -2.5rem;
  }
}

@media (max-width: 899px) {
  .home-shop {
    order: -1;
    width: min(100%, 420px);
    margin: 2.15rem auto 0.35rem;
  }

  .inquire-register {
    order: -1;
    width: min(100%, 420px);
    margin: 0 auto 0.35rem;
    justify-self: center;
    overflow: hidden;
    aspect-ratio: 1007 / 813;
  }

  .inquire-register canvas {
    width: calc(100% * 1217 / 1007);
    height: auto;
    aspect-ratio: auto;
    margin-left: calc(100% * -105 / 1007);
    margin-top: calc(100% * -105 / 1007);
  }
}

.legal {
  max-width: 40rem;
  padding-top: 1.25rem;
}

.legal h1 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.85rem, 4vw, 2.45rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.45rem;
  color: var(--ink);
}

.legal .meta {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.legal .jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin: 0 0 1.75rem;
}

.legal .jump a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.legal .jump a:hover {
  color: var(--ink);
}

.legal h2 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 500;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  margin: 2.1rem 0 0.55rem;
  color: var(--ink);
}

.legal p,
.legal li {
  color: var(--muted);
  line-height: 1.65;
  font-size: 1.02rem;
}

.legal ul {
  margin: 0.4rem 0 0;
  padding-left: 1.15rem;
}

.legal li + li {
  margin-top: 0.35rem;
}

.legal strong {
  color: var(--ink);
  font-weight: 600;
}

.legal a {
  color: var(--accent);
  text-decoration: none;
}

.legal a:hover {
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  .hero h1,
  .lede,
  .cta-row {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
