/* ==========================================================================
   Florena Diamond — Luxury Edition · Preorder
   Armen's Barrels LLC

   A deliberately single-theme page: the brand is gold foil on black, so the
   palette is committed rather than theme-switched. Every colour is painted
   explicitly so the page holds on any host background.
   ========================================================================== */

:root {
    /* Ground + surfaces (warm-biased near-black, never pure #000) */
    --ink:            #080807;
    --ink-raised:     #121110;
    --ink-sunk:       #050504;

    /* Warm accent — sampled from the Armen's Barrels mark (#FDB515) */
    --gold:           #e2b33c;
    --champagne:      #f2dfae;
    --brass:          #6e5518;
    --brass-dim:      #3a2e10;

    /* Cold accent — the diamond itself. Used only for certificate language. */
    --crystal:        #afcbdd;
    --crystal-dim:    #2c3a44;

    /* Text */
    --bone:           #e7e2d6;
    --ash:            #948c7c;
    --ash-dim:        #5f594e;

    /* Type */
    --display: "Cormorant Garamond", "Hoefler Text", Garamond, "Times New Roman", serif;
    --ui:      "Jost", "Futura", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
    --mono:    "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;

    /* Rhythm */
    --gutter: clamp(1.25rem, 4vw, 3.5rem);
    --measure: 62ch;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    /* Three background layers, topmost first:
       1. a warm wash of light falling from the top of the page;
       2. a solid block that keeps the masthead clear of the lattice,
          fading out just beneath it;
       3. a faint gold lattice of brilliant-cut diamonds, drawn to the
          decanter's own silhouette. Stroke width is 1/5 of the original
          so the 5x tile still renders as a hairline. */
    background-color: var(--ink);
    background-image:
        radial-gradient(120% 68% at 50% 0%,
            rgba(226, 179, 60, 0.075),
            rgba(8, 8, 7, 0) 62%),
        linear-gradient(to bottom,
            var(--ink) 0,
            var(--ink) 108px,
            rgba(8, 8, 7, 0) 196px),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='170' height='170' viewBox='0 0 170 170'%3E%3Cg fill='none' stroke='%23e2b33c' stroke-opacity='0.08' stroke-width='0.25'%3E%3Cpath d='M68 50 102 50 124 72 85 124 46 72Z'/%3E%3Cpath d='M46 72 124 72'/%3E%3Cpath d='M68 50 78 72'/%3E%3Cpath d='M102 50 92 72'/%3E%3Cpath d='M66 72 85 124'/%3E%3Cpath d='M104 72 85 124'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat, no-repeat, repeat;
    background-size: 100% 1100px, 100% 196px, 850px 850px;
    background-position: center top, center top, center top;
    color: var(--bone);
    font-family: var(--ui);
    font-weight: 300;
    font-size: clamp(0.975rem, 0.93rem + 0.22vw, 1.0625rem);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

::selection { background: var(--brass); color: var(--champagne); }

:where(a, button, input, [tabindex]):focus-visible {
    outline: 2px solid var(--crystal);
    outline-offset: 3px;
    border-radius: 1px;
}

/* --------------------------------------------------------------------------
   Shared primitives
   -------------------------------------------------------------------------- */

.shell {
    width: 100%;
    max-width: 1220px;
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* Letterspaced small-caps label — the page's connective tissue */
.label {
    font-family: var(--ui);
    font-weight: 400;
    font-size: 0.6875rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
}

.label--cool { color: var(--crystal); }
.label--mute { color: var(--ash); }

.serif { font-family: var(--display); }

/* A lozenge rule with a diamond at its centre — the one repeated flourish */
.rule {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--brass);
}

.rule::before,
.rule::after {
    content: "";
    flex: 1;
    height: 1px;
    background: currentColor;
}

.rule__gem {
    width: 6px;
    height: 6px;
    flex: none;
    transform: rotate(45deg);
    background: var(--gold);
}

.rule--short::before { flex: none; width: 2.5rem; }
.rule--short::after  { flex: none; width: 2.5rem; }

/* --------------------------------------------------------------------------
   Masthead
   -------------------------------------------------------------------------- */

.masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
    padding-block: 1.5rem 1rem;
    border-bottom: 1px solid var(--brass-dim);
}

.masthead__mark {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
    color: inherit;
}

.masthead__mark img {
    width: 54px;
    height: auto;
    flex: none;
}

.masthead__wordmark {
    font-family: var(--display);
    font-size: 1.0625rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--champagne);
    line-height: 1;
}

.masthead__edition {
    font-family: var(--ui);
    font-size: 0.625rem;
    font-weight: 400;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--ash);
    margin-top: 0.4rem;
    line-height: 1;
}

.masthead__status {
    font-family: var(--mono);
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    color: var(--ash);
    text-transform: uppercase;
}

.masthead__status b {
    color: var(--gold);
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   Hero — spotlit decanter beside the registration certificate
   -------------------------------------------------------------------------- */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
    padding-block: clamp(0.75rem, 1.6vw, 1.5rem) clamp(3rem, 7vw, 6rem);
}

/* --- Left: the bottle, lit --- */

.hero__stage {
    min-width: 0;
}

.hero__figure {
    margin: 0;
    width: 100%;
    max-width: 520px;
    margin-inline: auto;
}

.hero__bottle {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center;
    border: 1px solid var(--brass-dim);
    animation: settle 1.1s cubic-bezier(0.22, 0.8, 0.28, 1) both;
}

/* Animates transform only — the first painted frame is already legible */
@keyframes settle {
    from { transform: translateY(14px) scale(0.99); }
    to   { transform: none; }
}

.hero__caption {
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
    margin-top: 0.85rem;
    font-family: var(--mono);
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ash);
}

.hero__caption::before {
    content: "";
    flex: none;
    width: 5px;
    height: 5px;
    transform: rotate(45deg) translateY(-0.15em);
    background: var(--gold);
}

/* --- Right: the copy + certificate --- */

.hero__copy { min-width: 0; }

.hero__title {
    font-family: var(--display);
    font-weight: 300;
    font-size: clamp(2.625rem, 1.5rem + 5.2vw, 5.5rem);
    line-height: 0.94;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--champagne);
    margin: 0;
    text-wrap: balance;
}

.hero__title em {
    display: block;
    font-style: italic;
    text-transform: none;
    letter-spacing: 0.01em;
    font-size: 0.66em;
    color: var(--gold);
    margin-top: 0.06em;
}

.hero__lede {
    font-family: var(--display);
    font-size: clamp(1.125rem, 1rem + 0.6vw, 1.4375rem);
    line-height: 1.5;
    font-weight: 300;
    color: var(--bone);
    max-width: 46ch;
    margin: 1.75rem 0 0;
}

.hero__lede b {
    font-weight: 500;
    color: var(--champagne);
}

/* --------------------------------------------------------------------------
   The certificate — registration panel styled as a grading report
   -------------------------------------------------------------------------- */

.cert {
    position: relative;
    margin-top: 2.25rem;
    padding: clamp(1.5rem, 3vw, 2.125rem);
    background:
        linear-gradient(165deg,
            rgba(175, 203, 221, 0.05),
            rgba(18, 17, 16, 0) 55%),
        var(--ink-raised);
    border: 1px solid var(--crystal-dim);
}

/* Corner ticks, as engraved on a gem report */
.cert::before,
.cert::after {
    content: "";
    position: absolute;
    width: 13px;
    height: 13px;
    border: 1px solid var(--crystal);
    pointer-events: none;
}

.cert::before {
    top: -1px; left: -1px;
    border-right: 0; border-bottom: 0;
}

.cert::after {
    bottom: -1px; right: -1px;
    border-left: 0; border-top: 0;
}

.cert__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--crystal-dim);
}

.cert__serial {
    font-family: var(--mono);
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    color: var(--ash);
    font-variant-numeric: tabular-nums;
}

/* --- Price --- */

.cert__price {
    display: flex;
    align-items: baseline;
    gap: 0.85rem;
    flex-wrap: wrap;
    padding-block: 1.35rem 1.1rem;
}

.cert__amount {
    font-family: var(--display);
    font-size: clamp(3rem, 2.2rem + 3vw, 4.25rem);
    font-weight: 300;
    line-height: 0.9;
    color: var(--champagne);
    font-variant-numeric: lining-nums tabular-nums;
}

.cert__was {
    font-family: var(--mono);
    font-size: 0.9375rem;
    color: var(--ash);
    text-decoration: line-through;
    text-decoration-color: var(--brass);
    font-variant-numeric: tabular-nums;
}

.cert__save {
    font-family: var(--ui);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink);
    background: var(--gold);
    padding: 0.32rem 0.6rem;
    white-space: nowrap;
}

/* --- Dotted-leader spec rows --- */

.leaders {
    list-style: none;
    margin: 0;
    padding: 0 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-bottom: 1px solid var(--crystal-dim);
}

.leaders li {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    font-size: 0.8125rem;
}

.leaders .k {
    font-family: var(--ui);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.6875rem;
    color: var(--ash);
    white-space: nowrap;
}

.leaders .dots {
    flex: 1 1 auto;
    min-width: 1rem;
    border-bottom: 1px dotted var(--ash-dim);
    transform: translateY(-0.28em);
}

.leaders .v {
    font-family: var(--mono);
    font-size: 0.78125rem;
    color: var(--bone);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.leaders .v.is-gem { color: var(--crystal); }

/* --------------------------------------------------------------------------
   Registration form
   -------------------------------------------------------------------------- */

.reg { padding-top: 1.5rem; }

.reg__label {
    display: block;
    margin-bottom: 0.6rem;
}

.reg__row {
    display: flex;
    gap: 0.625rem;
    flex-wrap: wrap;
}

.reg__input {
    flex: 1 1 15rem;
    min-width: 0;
    font-family: var(--mono);
    font-size: 0.9375rem;
    color: var(--bone);
    background: var(--ink-sunk);
    border: 1px solid var(--brass-dim);
    padding: 0.85rem 0.95rem;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.reg__input::placeholder { color: var(--ash-dim); }

.reg__input:hover { border-color: var(--brass); }

.reg__input:focus {
    border-color: var(--gold);
    background: #000;
    outline: none;
}

.reg__input[aria-invalid="true"] { border-color: #c2603f; }

.reg__submit {
    flex: 0 1 auto;
    font-family: var(--ui);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink);
    background: var(--gold);
    border: 1px solid var(--gold);
    padding: 0.85rem 1.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.reg__submit:hover {
    background: var(--champagne);
    border-color: var(--champagne);
}

.reg__submit:active { background: var(--gold); }

.reg__note {
    font-size: 0.75rem;
    color: var(--ash);
    margin: 0.95rem 0 0;
    line-height: 1.55;
}

/* Bot trap — visually and programmatically hidden from people */
.reg__trap {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

/* --- Messages --- */

.msg {
    padding: 0.85rem 1rem;
    margin-bottom: 1.1rem;
    font-size: 0.8125rem;
    line-height: 1.55;
    border-left: 2px solid;
}

.msg--error {
    color: #f0b49a;
    background: rgba(194, 96, 63, 0.09);
    border-color: #c2603f;
}

/* --- Confirmed state --- */

.done { padding-top: 1.5rem; }

.done__title {
    font-family: var(--display);
    font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
    font-weight: 400;
    color: var(--champagne);
    margin: 0.75rem 0 0.6rem;
    line-height: 1.15;
}

.done__body {
    margin: 0;
    color: var(--ash);
    font-size: 0.875rem;
    max-width: 44ch;
}

.done__gem {
    width: 14px;
    height: 14px;
    background: var(--crystal);
    transform: rotate(45deg);
}

/* --------------------------------------------------------------------------
   Specification — the grading report proper
   -------------------------------------------------------------------------- */

.spec {
    padding-block: clamp(3rem, 7vw, 5.5rem);
    border-top: 1px solid var(--brass-dim);
}

.section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.section__title {
    font-family: var(--display);
    font-weight: 300;
    font-size: clamp(1.875rem, 1.4rem + 2.2vw, 3rem);
    line-height: 1.05;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--champagne);
    margin: 0;
    text-wrap: balance;
}

.spec__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
    gap: 0 clamp(2rem, 5vw, 4rem);
}

.spec__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.spec__list li {
    display: grid;
    grid-template-columns: 8.5rem minmax(0, 1fr);
    gap: 0.25rem 1.25rem;
    padding-block: 0.95rem;
    border-bottom: 1px solid var(--brass-dim);
    align-items: baseline;
}

.spec__k {
    font-family: var(--ui);
    font-size: 0.625rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    line-height: 1.5;
}

.spec__v {
    font-size: 0.9375rem;
    color: var(--bone);
    line-height: 1.55;
}

.spec__v small {
    display: block;
    font-size: 0.8125rem;
    color: var(--ash);
    margin-top: 0.15rem;
}

/* The single row that earns emphasis: the stone */
.spec__list li.is-stone { border-bottom-color: var(--crystal-dim); }
.spec__list li.is-stone .spec__k { color: var(--crystal); }

.spec__list li.is-stone .spec__v {
    color: var(--champagne);
    font-family: var(--display);
    font-size: 1.25rem;
}

/* --------------------------------------------------------------------------
   Sequence — register, contact, delivery. Numbered because order is real.
   -------------------------------------------------------------------------- */

.steps {
    padding-block: clamp(3rem, 7vw, 5.5rem);
    border-top: 1px solid var(--brass-dim);
}

.steps__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
    gap: clamp(1.75rem, 4vw, 3rem);
}

.step__no {
    font-family: var(--mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--gold);
    font-variant-numeric: tabular-nums;
    display: block;
    padding-bottom: 0.85rem;
    margin-bottom: 1.1rem;
    border-bottom: 1px solid var(--brass-dim);
}

.step__title {
    font-family: var(--display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--champagne);
    margin: 0 0 0.5rem;
    line-height: 1.2;
}

.step__body {
    margin: 0;
    font-size: 0.875rem;
    color: var(--ash);
    line-height: 1.65;
    max-width: 34ch;
}

/* --------------------------------------------------------------------------
   Provenance band
   -------------------------------------------------------------------------- */

.origin {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    padding-block: clamp(3rem, 7vw, 5.5rem);
    border-top: 1px solid var(--brass-dim);
}

.origin__figure { margin: 0; position: relative; }

.origin__figure img {
    width: 100%;
    height: auto;
    border: 1px solid var(--brass-dim);
}

.origin__body { max-width: var(--measure); }

.origin__text {
    font-family: var(--display);
    font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem);
    line-height: 1.45;
    font-weight: 300;
    color: var(--bone);
    margin: 1.25rem 0 0;
}

.origin__flags {
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
    margin: 1.75rem 0 0;
    font-family: var(--mono);
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ash);
}

.origin__flags::before {
    content: "";
    flex: none;
    width: 5px;
    height: 5px;
    transform: rotate(45deg) translateY(-0.15em);
    background: var(--gold);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.foot {
    border-top: 1px solid var(--brass-dim);
    padding-block: 2.5rem 3.25rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
    gap: 1.75rem clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.foot__mark {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.foot__mark img { width: 76px; height: auto; flex: none; }

.foot__co {
    font-family: var(--display);
    font-size: 0.9375rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--champagne);
    line-height: 1.3;
}

.foot__meta {
    font-size: 0.75rem;
    color: var(--ash);
    line-height: 1.75;
    margin: 0;
}

.foot__meta a { color: var(--gold); text-decoration: none; }
.foot__meta a:hover { text-decoration: underline; }

.foot__legal {
    font-size: 0.6875rem;
    color: var(--ash-dim);
    line-height: 1.7;
    margin: 0;
}

.foot__legal b {
    display: block;
    color: var(--ash);
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.625rem;
    margin-bottom: 0.35rem;
}

/* --------------------------------------------------------------------------
   Narrow viewports
   -------------------------------------------------------------------------- */

@media (max-width: 860px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
        padding-block: 1rem 3rem;
    }

    /* Photograph first on small screens, capped so the headline stays in frame */
    .hero__stage { order: -1; }
    .hero__figure { max-width: min(80vw, 380px); }
}

@media (max-width: 460px) {
    .spec__list li {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.3rem;
    }

    .cert__price { gap: 0.6rem; }
    .reg__submit { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}
