/* The order page shares its type and token artwork with the Finder landing page. */
@font-face {
    font-family: "Finder Display";
    src: url("https://pirate-shop-finder.pages.dev/assets/fonts/Anton-Regular.woff2") format("woff2");
    font-display: swap;
}
@font-face {
    font-family: "Finder Sans";
    src: url("https://pirate-shop-finder.pages.dev/assets/fonts/Inter-Variable.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}
:root {
    color-scheme: dark;
    --ink: #fff9ed;
    --muted: #cac2b8;
    --gold: #ffca58;
    --line: #494139;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    color: var(--ink);
    background: #131210;
    font: 1rem/1.55 "Finder Sans", system-ui, sans-serif;
}
a { color: inherit; text-underline-offset: .22em; }
a:hover { color: var(--gold); }
:focus-visible { outline: 3px solid #ffdd89; outline-offset: 4px; }
p, dl, dd, h1, h2 { margin: 0; }
.wrap { width: min(calc(100% - 4rem), 70rem); margin-inline: auto; }
.skip-link {
    position: absolute;
    top: .5rem;
    left: .5rem;
    z-index: 3;
    padding: .7rem 1rem;
    color: #1c170d;
    background: var(--gold);
    transform: translateY(-160%);
}
.skip-link:focus { transform: none; }
.masthead { border-bottom: 1px solid #352f28; }
.header-row { display: flex; justify-content: space-between; align-items: center; min-height: 4.4rem; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .5rem; font-size: 1.6rem; font-weight: 900; font-style: italic; line-height: 1; letter-spacing: -.075em; text-decoration: none; }
.brand svg { width: 1.55rem; height: 1.65rem; color: var(--gold); }
.brand-stop { color: var(--gold); }
.back-link { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.75rem; color: #ded5c8; font-size: .88rem; font-weight: 600; text-decoration: none; }
.back-link span { color: var(--gold); }
.layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(1rem, 2.6vw, 2.3rem);
    margin-block: clamp(1.8rem, 5vw, 4.5rem);
}
.product {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 30rem;
    padding: clamp(1.6rem, 3.7vw, 3.15rem);
    border: 1px solid #5c4935;
    border-radius: 12px;
    background: #342024 url("https://pirate-shop-finder.pages.dev/media/cove.webp") 66% 67% / cover no-repeat;
}
.product::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(115deg, #171416e8 4%, #1c151ab8 40%, #1c141952 77%), linear-gradient(0deg, #281a2094, transparent 51%);
}
.product-copy { position: relative; z-index: 1; }
.product-category { color: #ffda84; font: 700 .73rem/1.4 ui-monospace, monospace; letter-spacing: .13em; text-transform: uppercase; }
h1 { margin-block: .75rem 1rem; font: 400 clamp(4.3rem, 6.3vw, 6.25rem)/.99 "Finder Display", Impact, "Arial Narrow", sans-serif; letter-spacing: -.02em; text-transform: uppercase; }
h1 em { display: inline-block; transform: skew(-8deg); color: var(--gold); font-style: normal; }
.product-detail { max-width: 24rem; color: #f3ebe1; line-height: 1.55; text-shadow: 0 1px 8px #160d10; }
.product-token {
    display: block;
    width: clamp(8.5rem, 16vw, 12.75rem);
    height: auto;
    margin: clamp(.8rem, 2.4vw, 2rem) 0 -.4rem auto;
    transform: rotate(-10deg);
    filter: drop-shadow(0 .75rem 1rem #21130ca8);
}
.order-card { min-width: 0; padding: clamp(1.5rem, 3.6vw, 3rem); border: 1px solid #4b4136; border-radius: 12px; background: #201d19; }
h2 { font-size: clamp(1.7rem, 2.6vw, 2.15rem); line-height: 1.15; letter-spacing: -.045em; }
.rates { margin-block: 1.3rem .6rem; }
.rates > div { display: flex; justify-content: space-between; align-items: center; gap: .8rem; }
.today { padding-block: .9rem; border-block: 1px solid var(--line); }
.today dt { font-weight: 700; }
.today small { display: block; color: var(--muted); font-size: .85rem; font-weight: 450; }
.today dd { color: var(--gold); font-size: 2.65rem; font-weight: 730; line-height: 1.1; letter-spacing: -.06em; white-space: nowrap; }
.recurring { padding-block: .6rem .2rem; font-weight: 630; font-size: .94rem; }
.recurring dd { white-space: nowrap; }
.recurring span { color: var(--muted); font-size: .87rem; font-weight: 500; }
.terms-summary { color: var(--muted); font-size: .87rem; line-height: 1.58; }
.action-area { margin-top: 1.3rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.account-instruction, .consent, .login-option { font-size: .9rem; }
.account-instruction { margin-bottom: .85rem; }
.button { display: flex; align-items: center; justify-content: center; gap: .65rem; width: 100%; min-height: 3.15rem; padding: .65rem .9rem; border: 1px solid #ffda80; border-radius: 5px; color: #20170a; background: var(--gold); font: inherit; font-weight: 750; text-align: center; text-decoration: none; cursor: pointer; }
.button:hover { color: #20170a; background: #ffdc87; }
.login-option, .helper { margin-top: .75rem; text-align: center; }
.login-option { color: var(--muted); }
.login-option a { display: inline-block; min-height: 1.5rem; color: var(--ink); font-weight: 650; }
.helper { color: var(--muted); font-size: .83rem; }
.consent { display: flex; align-items: flex-start; gap: .65rem; margin-bottom: .95rem; cursor: pointer; }
.consent input { flex: 0 0 auto; width: 1.16rem; height: 1.16rem; margin: .12rem 0 0; accent-color: var(--gold); }
.notice { margin-block: 1rem; border-inline-start: 3px solid var(--gold); padding: .7rem 1rem; background: #342e24; font-size: .9rem; }
.notice a { display: inline-block; margin-top: .3rem; font-weight: 650; }
.fine-print { margin-top: 1rem; color: #bfb6aa; font-size: .79rem; line-height: 1.6; }
.fine-print a { display: inline-block; min-height: 1.5rem; }
.footer { display: flex; justify-content: space-between; align-items: baseline; gap: .4rem 1.5rem; padding-block: 1.1rem; border-top: 1px solid #39332c; color: #bbb2a7; font-size: .8rem; }
.footer > span { font-weight: 720; letter-spacing: .035em; }
.footer nav { display: flex; flex-wrap: wrap; gap: .2rem 1rem; }
.footer a { display: inline-flex; align-items: center; min-height: 1.65rem; }
@media (max-width: 48rem) {
    .wrap { width: min(calc(100% - 2rem), 36rem); }
    .header-row { min-height: 3.7rem; }
    .layout { grid-template-columns: minmax(0, 1fr); margin-block: 1.2rem 1.8rem; }
    .product { min-height: auto; padding: 1.4rem; }
    h1 { max-width: 76%; font-size: clamp(3.1rem, 10.6vw, 4.3rem); }
    .product-detail { max-width: 26rem; font-size: .87rem; }
    .product-token { position: absolute; z-index: 0; top: 1.1rem; right: .35rem; width: clamp(6.7rem, 25vw, 10.5rem); margin: 0; }
    .order-card { padding: 1.45rem; }
    .footer { flex-direction: column; }
}
@media (max-width: 24rem) {
    .wrap { width: calc(100% - 1.4rem); }
    .product, .order-card { padding: 1.15rem; }
    .brand { font-size: 1.28rem; }
    .back-link { font-size: .78rem; }
    h1 { max-width: 80%; font-size: 2.65rem; }
    .product-token { width: 4.8rem; }
    .rates > div { column-gap: .4rem; }
    .footer nav { column-gap: .7rem; }
}
