/* SÍLD's store. The film's grounds (sea, madder red, sand) and the tins' print (woad, madder, weld on paper); Linux
   Libertine Bold for the wordmark and headlines as on the tins, Biolinum for the spaced capitals and the text. */
@font-face { font-family: Libertine; font-weight: 700; font-display: swap; src: url(fonts/libertine-bold.woff2) format('woff2'); }
@font-face { font-family: Libertine; font-weight: 400; font-display: swap; src: url(fonts/libertine.woff2) format('woff2'); }
@font-face { font-family: Libertine; font-weight: 400; font-style: italic; font-display: swap; src: url(fonts/libertine-italic.woff2) format('woff2'); }
@font-face { font-family: Biolinum; font-weight: 400; font-display: swap; src: url(fonts/biolinum.woff2) format('woff2'); }
@font-face { font-family: Biolinum; font-weight: 700; font-display: swap; src: url(fonts/biolinum-bold.woff2) format('woff2'); }

:root { --paper: #eee5cf; --woad: #213a62; --madder: #ac3426; --weld: #dea62e; --ink: #181e2c;
  --sea: #4f8c9b; --red: #a63b2e; --sand: #cfb487; --pale: #6aa6b3; --pad: clamp(16px, 3.5vw, 56px); }
* { margin: 0; padding: 0; box-sizing: border-box; }
html { background: var(--paper); }
body { background: var(--paper); color: var(--woad); font-family: Biolinum, Georgia, serif; -webkit-font-smoothing: antialiased;
  overflow-x: hidden; }
img, video, canvas { display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cap { font-family: Biolinum, Georgia, serif; font-weight: 700; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; line-height: 1.7; }
.copy { font-size: 18px; line-height: 1.5; max-width: 32em; }
.copy.big { font-family: Libertine, Georgia, serif; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.2; }
.h2 { font-family: Libertine, Georgia, serif; font-weight: 700; font-size: clamp(38px, 4.6vw, 72px); line-height: 1.0; }
.h-touch { display: none; }
@media (hover: none) { .h-desk { display: none; } .h-touch { display: inline; } }

/* header */
.top { position: fixed; z-index: 20; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 40px;
  padding: 16px var(--pad); color: var(--paper); transition: color 0.3s, background 0.3s; }
.top.on-paper { color: var(--woad); }
.logo { font-family: Libertine, Georgia, serif; font-weight: 700; font-size: 34px; line-height: 1; }
.top nav { display: flex; gap: 28px; margin-left: auto; }
.bag { background: none; border: 0; cursor: pointer; }

/* hero */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: var(--sea); color: var(--paper); }
.hero-v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-v.tall { display: none; }
.hero-tl { position: absolute; left: var(--pad); top: 92px; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25); }
.hero-name { position: absolute; left: var(--pad); bottom: 0.02em; font-family: Libertine, Georgia, serif; font-weight: 700;
  font-size: clamp(140px, 24vw, 400px); line-height: 0.8; text-shadow: 0 6px 40px rgba(0, 0, 0, 0.18); }

/* intro */
.intro { padding: clamp(90px, 12vw, 190px) var(--pad) clamp(60px, 7vw, 110px); display: grid; grid-template-columns: 1fr auto;
  align-items: end; gap: 40px; }
.intro-big { font-family: Libertine, Georgia, serif; font-weight: 700; font-size: clamp(34px, 4.4vw, 68px); line-height: 1.04; max-width: 16em; }
.intro-meta { color: var(--madder); }

/* the tins */
.tins { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--pad) calc(var(--pad) * 0.6); padding: 0 var(--pad) 40px; }
.flip { position: relative; aspect-ratio: 4 / 5; background: var(--sand); overflow: hidden; cursor: pointer; }
.flip canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.tin-row { display: flex; align-items: baseline; gap: 14px; margin-top: 18px; }
.tin-row h2 { font-family: Libertine, Georgia, serif; font-weight: 700; font-size: 36px; line-height: 1; }
.tin-row .cap { color: var(--madder); }
.price { margin-left: auto; font-family: Libertine, Georgia, serif; font-size: 24px; }
.tin .copy { font-size: 16px; margin-top: 10px; min-height: 3em; }
.add { margin-top: 18px; width: 100%; background: var(--woad); color: var(--paper); border: 0; padding: 15px; cursor: pointer;
  transition: background 0.25s; }
.tin:nth-child(2) .add { background: var(--madder); }
.tin:nth-child(3) .add { background: var(--weld); color: var(--woad); }
.tin:nth-child(4) .add { background: var(--ink); }
.add.done { background: var(--sea) !important; color: var(--paper) !important; }
.tins-hint { grid-column: 1 / -1; color: var(--madder); padding: 10px 0 60px; }

/* the ring */
.ring { position: relative; background: var(--sand); overflow: hidden; }
.ring-cv { width: 100%; height: min(100vh, 62vw); touch-action: pan-y; cursor: grab; -webkit-user-select: none; user-select: none; }
.ring-cv.held { cursor: grabbing; }
.ring-text { position: absolute; left: var(--pad); top: 90px; z-index: 2; pointer-events: none; }
.ring-text .copy { margin-top: 14px; font-family: Libertine, Georgia, serif; font-size: 24px; }
.ring-hint { position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); color: var(--woad); pointer-events: none;
  transition: opacity 0.5s; }
.ring.opened .ring-hint { opacity: 0; }
.ring-again { position: absolute; right: var(--pad); bottom: 34px; background: var(--woad); color: var(--paper); border: 0;
  padding: 13px 22px; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity 0.5s; }
.ring.done .ring-again { opacity: 1; pointer-events: auto; }

/* the wall */
.wall { position: relative; height: 420vh; background: var(--ink); }
.wall-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.wall-cv { width: 100%; height: 100%; }
.wall-cap { position: absolute; left: var(--pad); bottom: 30px; color: var(--paper); text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5); }

/* the dyes */
.dyes { display: grid; grid-template-columns: repeat(3, 1fr); }
.dye { padding: clamp(60px, 7vw, 110px) var(--pad) clamp(60px, 6vw, 90px); color: var(--paper); }
.dye.woad { background: var(--woad); }
.dye.madder { background: var(--red); }
.dye.weld { background: var(--weld); color: var(--woad); }
.dye-name { font-family: Libertine, Georgia, serif; font-weight: 700; font-size: clamp(48px, 5vw, 80px); line-height: 1; margin-top: 6px; }
.latin { font-family: Libertine, Georgia, serif; font-style: italic; font-size: 18px; margin-top: 8px; }
.dye img { width: 100%; margin: 40px 0 30px; border-radius: 14px; box-shadow: 0 24px 44px rgba(0, 0, 0, 0.28); }
.dye .copy { font-size: 16px; }
.dyes-note { grid-column: 1 / -1; background: var(--ink); color: var(--paper); max-width: none; padding: 26px var(--pad); font-size: 15px; }

/* the silver darlings */
.silver { display: grid; grid-template-columns: 1.25fr 1fr; background: var(--ink); color: var(--paper); }
.silver-img img { width: 100%; height: 100%; object-fit: cover; min-height: 640px; }
.silver-text { padding: clamp(60px, 7vw, 110px) var(--pad); align-self: center; }
.coin { width: min(320px, 70%); margin-bottom: 44px; }
.silver-text .copy { margin-top: 20px; font-size: 17px; }

/* the name */
.name { padding: clamp(100px, 12vw, 190px) var(--pad); background: var(--sand); }
.sild-def { font-family: Libertine, Georgia, serif; font-weight: 700; font-size: clamp(110px, 16vw, 260px); line-height: 0.8; }
.sild-def span { font-size: 0.18em; color: var(--madder); vertical-align: top; }
.name .copy.big { margin-top: 30px; }
.name-note { margin-top: 18px; font-size: 16px; }

/* letters */
.letters { padding: clamp(80px, 9vw, 140px) var(--pad); display: grid; grid-template-columns: 1fr 1fr; gap: var(--pad); align-items: end; }
.letters-form { display: flex; flex-wrap: wrap; gap: 10px; }
.letters-form input { flex: 1 1 220px; background: #fff8e8; border: 0; padding: 16px 18px; font-size: 16px; outline: none; }
.letters-form button { background: var(--woad); color: var(--paper); border: 0; padding: 0 28px; min-height: 52px; cursor: pointer; }
.sent-msg { display: none; width: 100%; color: var(--madder); }
.letters-form.sent input, .letters-form.sent button { display: none; }
.letters-form.sent .sent-msg { display: block; }

/* footer: the three tins' sides stacked, sliding past each other */
.foot { background: var(--sand); color: var(--woad); padding-top: 70px; }
.foot-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--pad); padding: 0 var(--pad) 60px; align-items: end; }
.foot-name { font-family: Libertine, Georgia, serif; font-weight: 700; font-size: clamp(64px, 7vw, 110px); line-height: 0.8; }
.foot-mark .copy { margin-top: 14px; font-family: Libertine, Georgia, serif; font-size: 20px; }
.foot-col { display: flex; flex-direction: column; gap: 4px; }
.foot-col a:hover { color: var(--madder); }
.stack { --h: clamp(64px, 8vw, 120px); }
.band { height: var(--h); background: var(--img) repeat-x 0 50% / auto 100%; position: relative; }
/* each band's rolled rim: a strip of cream lacquer catching the light */
.band::after { content: ''; position: absolute; left: 0; right: 0; top: -3px; height: 6px;
  background: linear-gradient(#f7f0dc, #cfc2a0 60%, #8f8466); }
.foot-row { display: flex; justify-content: space-between; gap: 20px; padding: 18px var(--pad); background: var(--ink); color: var(--paper); }
.foot-row a { text-decoration: underline; text-underline-offset: 3px; }

/* phones: their own layout */
@media (max-width: 760px) {
  .top { padding: 14px 16px; gap: 16px; }
  .logo { font-size: 30px; }
  .top nav { display: none; }
  .bag { margin-left: auto; }
  .hero-v.wide { display: none; }
  .hero-v.tall { display: block; }
  .hero-tl { top: 70px; left: 16px; font-size: 10px; }
  .hero-name { left: 14px; font-size: 42vw; }
  .intro { grid-template-columns: 1fr; padding: 76px 16px 44px; gap: 24px; }
  .intro-big { font-size: 34px; }
  .tins { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding: 0 16px 20px; scrollbar-width: none; }
  .tins::-webkit-scrollbar { display: none; }
  .tin { flex: 0 0 80vw; scroll-snap-align: center; }
  .tins-hint { display: none; }
  .ring { padding-top: 64px; }
  .ring-cv { height: 120vw; }
  .ring-text { position: static; padding: 0 16px; }
  .ring-hint { bottom: 24px; }
  .ring-again { right: 16px; bottom: 18px; }
  .wall { height: 380vh; }
  .wall-cap { left: 16px; bottom: 22px; }
  .dyes { grid-template-columns: 1fr; }
  .dye { padding: 56px 16px; }
  .dye img { margin: 24px 0 20px; }
  .dyes-note { padding: 22px 16px; }
  .silver { grid-template-columns: 1fr; }
  .silver-img img { min-height: 0; aspect-ratio: 1; }
  .silver-text { padding: 56px 16px 70px; }
  .coin { width: 200px; margin-bottom: 30px; }
  .name { padding: 90px 16px; }
  .sild-def { font-size: 110px; }
  .letters { grid-template-columns: 1fr; padding: 70px 16px; gap: 26px; }
  .h2 { font-size: 40px; }
  .copy { font-size: 16px; }
  .foot { padding-top: 56px; }
  .foot-top { grid-template-columns: 1fr 1fr; padding: 0 16px 44px; }
  .foot-mark { grid-column: 1 / -1; }
  .stack { --h: 72px; }
  .foot-row { flex-direction: column; gap: 4px; padding: 16px; }
}
