/* Liberty Coin and Bullion of Marion
   All the colors, fonts, and main sizes live in this first block, so they're easy to change in one place. */

@font-face{font-family:Cinzel;src:url(../fonts/cinzel.woff2) format("woff2");font-weight:400 900;font-display:block}
@font-face{font-family:"Libre Caslon Text";src:url(../fonts/libre-caslon-text-regular.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Libre Caslon Text";src:url(../fonts/libre-caslon-text-italic.woff2) format("woff2");font-weight:400;font-style:italic;font-display:swap}
@font-face{font-family:"Libre Caslon Text";src:url(../fonts/libre-caslon-text-bold.woff2) format("woff2");font-weight:700;font-style:normal;font-display:swap}

:root{
  --page:#0e1c3a; --tint:#0b1730; --ink:#f5efe0; --sub:#b7bfd0; --line:#3d4d73;
  --gold:#d8b35a; --gold-soft:#f0d78f; --bar:#0e1c3a;
  --display:Cinzel,Georgia,"Times New Roman",serif;
  --body:"Libre Caslon Text",Georgia,"Times New Roman",serif;
  --draft-bg:#f6e7bd; --draft-ink:#3a2c06;
  --preview-h:58px;
  color-scheme:dark;color-scheme:only dark;   /* asks phones with a forced dark mode not to repaint the navy look */
}
:root[data-theme="light"]{
  --page:#fbf8f1; --tint:#f3eee2; --ink:#14274e; --sub:#55607a; --line:#c9c2b0;
  --gold:#8f6b1c; --gold-soft:#6e5212; --bar:#fbf8f1;
  color-scheme:only light;   /* the same, for the off-white look */
}

*{box-sizing:border-box}
html{scroll-padding-top:64px}
body{margin:0;background:var(--page);color:var(--ink);font:400 clamp(17px,.5vw + 15px,20px)/1.62 var(--body);padding-bottom:var(--preview-h);overflow-x:hidden}
img{max-width:100%}
a{color:inherit}
h1,h2,h3{font-family:var(--display);font-weight:600;letter-spacing:.02em;line-height:1.2;margin:0}
h2{font-size:clamp(25px,3.4vw,38px);margin-bottom:.55em}
h3{font-size:.92rem;margin:.65em 0 .1em;line-height:1.3}
p{margin:0 0 1em}
main:focus{outline:0}
:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.skip{position:absolute;left:-999px;top:0;z-index:99;background:var(--ink);color:var(--page);padding:.6em 1em}
.skip:focus{left:8px;top:8px}
.center{text-align:center;margin:1.6em 0 0}

/* --- Showing one "page" at a time. With no scripts, everything simply stacks up. --- */
.js .view{display:none}
.js .view.on{display:block}
.js .view.on.arrive{animation:fadein .32s ease both}
@keyframes fadein{from{opacity:0}to{opacity:1}}
html:not(.js) #view-coin{display:none}

/* --- The first-draft note and the design preview buttons. These two go away on the finished site. --- */
.draft-note{margin:0;padding:.5em 14px;background:var(--draft-bg);color:var(--draft-ink);text-align:center;font:400 14px/1.35 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
.draft-tip{margin:1.1em auto 0;max-width:30em;color:var(--gold-soft);font-style:italic;font-size:.9rem;line-height:1.4}
.preview{position:fixed;left:0;right:0;bottom:0;z-index:40;display:flex;align-items:center;justify-content:center;gap:10px;padding:8px 8px calc(8px + env(safe-area-inset-bottom));background:var(--draft-bg);color:var(--draft-ink);box-shadow:0 -2px 12px rgba(0,0,0,.4);font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;max-height:200px;-webkit-text-size-adjust:100%;text-size-adjust:100%}
.preview-label{margin:0;font-size:10.5px;font-weight:700;line-height:1.15;letter-spacing:.06em;text-transform:uppercase}
.seg{display:inline-flex;border:1px solid rgba(58,44,6,.6);border-radius:8px;overflow:hidden}
.seg button{min-height:40px;padding:0 11px;border:0;border-left:1px solid rgba(58,44,6,.35);background:none;color:inherit;font:600 14px system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;cursor:pointer}
.seg button{white-space:nowrap}
.seg button:first-child{border-left:0}
@media(max-width:360px){.preview{gap:6px;padding-left:4px;padding-right:4px}.seg button{padding:0 7px;font-size:13px}.preview-label{font-size:9.5px}}
.seg button[aria-pressed="true"]{background:#3a2c06;color:#f6e7bd}

/* --- The top bar: three plain words, always there --- */
.topbar{position:sticky;top:0;z-index:30;display:flex;align-items:stretch;justify-content:space-between;background:var(--bar);border-bottom:1px solid var(--line);padding:0 clamp(0px,3vw,32px)}
.brand{display:none;align-items:center;font-family:var(--display);font-weight:600;font-size:15px;letter-spacing:.04em;text-decoration:none;white-space:nowrap}
.brand span{color:var(--sub);margin-left:.4em}
.topbar nav{display:flex;flex:1}
.topbar nav a{flex:1;display:flex;align-items:center;justify-content:center;min-height:50px;padding:0 1.1em;font-family:var(--display);font-weight:600;font-size:16px;letter-spacing:.08em;text-decoration:none;border-bottom:3px solid transparent}
.topbar nav a[aria-current="true"]{border-bottom-color:var(--gold);color:var(--gold-soft)}
@media(min-width:760px){.brand{display:flex}.topbar nav{flex:none}}

/* --- Buttons --- */
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:.5em 1.35em;border:1px solid var(--gold);border-radius:7px;background:none;color:var(--ink);font:600 .95rem/1.2 var(--display);letter-spacing:.05em;text-align:center;text-decoration:none;cursor:pointer}
.btn:hover{background:rgba(216,179,90,.14)}
.btn.gold{background:linear-gradient(180deg,#ecd07c,#c9a24a);border-color:#ecd07c;color:#14203c}
.btn.gold:hover{background:linear-gradient(180deg,#f3dc95,#d4ae56)}
.actions{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin-top:1.3em}
.actions.left{justify-content:flex-start}
.linklike{background:none;border:0;padding:.3em 0;color:var(--gold-soft);font:inherit;font-size:.9rem;text-decoration:underline;cursor:pointer}

/* --- The hero --- */
.hero{position:relative;overflow:hidden;display:grid;place-items:center;padding:clamp(30px,6vh,70px) 14px;min-height:min(72vh,680px);min-height:min(72svh,680px);text-align:center}
.hero-in{position:relative;z-index:1;width:100%}
/* Phones can enlarge text on their own. The coin measures the letter as it's really drawn, so they always match. */
.name{font-weight:500;letter-spacing:.045em;line-height:1.18;font-size:clamp(30px,9vw,128px);white-space:nowrap;-webkit-text-size-adjust:100%;text-size-adjust:100%}
.name small{display:block;margin-top:.5em;font-size:clamp(14px,.2em,28px);font-weight:500;letter-spacing:.32em;color:var(--sub)}
.lede{margin:1.3em auto 0;max-width:27em;color:var(--sub);font-size:1.06rem;line-height:1.5}
.coin-o{position:relative;display:inline-block;line-height:1}
.hit{position:absolute;left:50%;top:45%;width:max(50px,1em);height:max(50px,1em);transform:translate(-50%,-50%);border-radius:50%;-webkit-tap-highlight-color:transparent}

/* The coin itself. The script moves this one canvas between the word, the store, and the flight in between. */
#coin{display:block;pointer-events:none}
#coin.in-word{position:absolute;opacity:0}
#coin.in-stage{position:absolute;left:0;top:0;width:100%;height:100%;opacity:1}
#coin.in-flight{position:fixed;left:0;top:0;opacity:1;z-index:60;transform-origin:0 0;will-change:transform}
#veil{position:fixed;inset:0;z-index:50;background:var(--page);opacity:0;pointer-events:none}
#veil.on{pointer-events:auto;cursor:pointer}

/* The fine engraved lines behind the name, the kind found on banknotes */
.rosette{position:absolute;left:-5%;top:-5%;width:110%;height:110%;z-index:0;pointer-events:none;opacity:.2;will-change:transform;
  -webkit-mask-image:radial-gradient(closest-side at 50% 44%,rgba(0,0,0,.1) 45%,#000 100%);mask-image:radial-gradient(closest-side at 50% 44%,rgba(0,0,0,.1) 45%,#000 100%)}
:root[data-theme="light"] .rosette{opacity:.3}
.store-head .rosette{-webkit-mask-image:none;mask-image:none}

/* The ridged edge of a coin, used as a divider */
.reed{height:8px;border-block:1px solid var(--line);background:repeating-linear-gradient(90deg,var(--gold) 0 1px,transparent 1px 4px);opacity:.75}

/* --- Sections --- */
.sec{padding:clamp(38px,6.5vw,84px) 16px}
.sec.tint{background:var(--tint)}
.sec.tight{padding-top:clamp(18px,3vw,34px)}
.wrap{max-width:1060px;margin:0 auto}
.wrap.narrow{max-width:40em}
.eyebrow{margin:0 0 .5em;color:var(--gold-soft);font:600 .8rem/1.3 var(--display);letter-spacing:.16em;text-transform:uppercase}

.week-in{display:grid;gap:clamp(22px,4vw,52px);align-items:center}
.week-coin{display:block;width:min(100%,430px);margin:0 auto}
@media(min-width:720px){.week-in{grid-template-columns:minmax(0,5fr) minmax(0,6fr)}}

/* --- The display case: every coin sits on the same dark velvet, in both page colors --- */
.well{position:relative;display:grid;place-items:center;aspect-ratio:1;border-radius:10px;overflow:hidden;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E"),
    radial-gradient(120% 95% at 32% 18%,#1b2c56 0%,#0e1934 52%,#070e20 100%);
  box-shadow:inset 0 0 0 1px rgba(216,179,90,.28),inset 0 10px 30px rgba(0,0,0,.65)}
.piece{position:relative;display:block;filter:drop-shadow(0 7px 9px rgba(0,0,0,.6))}
.piece img{display:block;width:100%;height:auto}
.piece.round{width:82%}
.piece.round.small{width:62%}
.piece.tall{width:56%}
.piece.wide{width:90%}
/* The band of light that crosses each coin as the phone tilts, the mouse moves, or the page scrolls */
.shine{position:absolute;inset:0;overflow:hidden;pointer-events:none;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}
.shine i{position:absolute;top:0;bottom:0;left:-100%;width:300%;
  background:linear-gradient(105deg,transparent 30%,rgba(255,250,232,.10) 42%,rgba(255,250,232,.5) 50%,rgba(255,250,232,.10) 58%,transparent 70%) 0 0/33.334% 100% repeat-x;
  transform:translate3d(calc((var(--gs,0) + var(--off,0))*1%),0,0)}

.case{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 14px}
@media(min-width:620px){.case{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px 18px}}
@media(min-width:1000px){.case:not(.three){grid-template-columns:repeat(4,minmax(0,1fr))}}
.case.three{margin-top:1.4em}
@media(max-width:619px){.case.three{grid-template-columns:repeat(2,minmax(0,1fr))}.case.three .tile:last-child{grid-column:1/-1;width:calc(50% - 7px);margin:0 auto}}
.tile{display:block;color:inherit;text-decoration:none;-webkit-tap-highlight-color:transparent}
.tile:hover h3{color:var(--gold-soft)}
.price{margin:0;color:var(--gold-soft);font-style:italic;font-size:.92rem;line-height:1.35}
.price.big{font-size:1.2rem;margin-bottom:.7em}
.item[hidden]{display:none}
.js .case .about{display:none}
.sold-tag{position:absolute;top:9%;right:7%;transform:rotate(9deg);padding:.05em .55em;border:2px solid #ecd07c;border-radius:4px;background:rgba(7,14,32,.82);color:#f0d78f;font:700 .82rem/1.4 var(--display);letter-spacing:.1em;text-transform:uppercase}

.finds{margin:1.4em 0 0;display:grid;gap:0}
.finds>div{display:grid;gap:.15em 1.4em;padding:.95em 0;border-top:1px solid var(--line)}
.finds>div:last-child{border-bottom:1px solid var(--line)}
.finds dt{font:600 1.02rem/1.3 var(--display);color:var(--gold-soft);letter-spacing:.03em}
.finds dd{margin:0}
@media(min-width:720px){.finds>div{grid-template-columns:11em 1fr}}

.visit-in{display:grid;gap:26px;align-items:center}
.visit-in p{margin-bottom:.4em}
.visit-actions{display:grid;gap:12px}
@media(min-width:720px){.visit-in{grid-template-columns:1fr 1fr}}

/* --- The store's big coin --- */
.store-head{position:relative;overflow:hidden;padding:clamp(14px,2.5vw,30px) 16px clamp(16px,2.5vw,30px);text-align:center}
.store-head-in{position:relative;z-index:1;display:grid;justify-items:center;gap:6px}
.stage{position:relative;width:min(74vw,400px,50vh);aspect-ratio:1;touch-action:pan-y;cursor:grab;-webkit-user-select:none;user-select:none}
.stage:active{cursor:grabbing}
.store-title h2{margin-bottom:.2em}
.stage-hint{margin:0;color:var(--sub);font-size:.92rem;line-height:1.4}
@media(min-width:700px){
  .store-head-in{grid-template-columns:auto minmax(0,24em);justify-content:center;align-items:center;gap:clamp(18px,3vw,40px);text-align:left}
  .store-head .draft-tip{margin-left:0}
  .stage{width:min(46vw,400px,62vh)}
}
.store-head .draft-tip{margin-top:.7em}
.filters{display:flex;flex-wrap:wrap;justify-content:center;gap:7px;padding:16px 8px 4px}
.chip{display:inline-flex;align-items:center;min-height:46px;padding:0 .95em;border:1px solid var(--line);border-radius:999px;font:600 .85rem/1 var(--display);letter-spacing:.04em;text-decoration:none}
.chip[aria-current="true"]{background:var(--gold);border-color:var(--gold);color:var(--page)}

/* --- One coin up close --- */
.back{display:inline-flex;align-items:center;min-height:48px;margin-bottom:.5em;font:600 .95rem/1.2 var(--display);letter-spacing:.03em;text-decoration:none;color:var(--gold-soft)}
.detail{display:grid;gap:22px}
#d-well{width:min(100%,520px,54vh);margin:0 auto}
#d-well .piece.round{width:86%}
#d-well .piece.round.small{width:58%}
#d-well .piece.tall{width:60%}
#d-well .piece.wide{width:94%}
@media(min-width:700px){.detail{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:clamp(20px,4vw,40px)}#d-well{width:100%}}

.sheet{position:fixed;inset:0;z-index:70;display:grid;place-items:center;padding:20px;background:rgba(4,9,22,.72)}
.sheet[hidden]{display:none}
.sheet-card{max-width:26em;padding:26px 24px;border:1px solid var(--gold);border-radius:12px;background:var(--page);text-align:center}

.foot{padding-bottom:6px}
.foot-in{display:flex;flex-wrap:wrap;gap:8px 22px;justify-content:center;align-items:center;padding:20px 16px 18px;color:var(--sub);font-size:.86rem}
.credit{display:inline-flex;align-items:center;gap:8px;min-height:44px;text-decoration:none}

@media(prefers-reduced-motion:reduce){.js .view.on.arrive{animation:none}}
