@font-face {
    font-family: "Cormorant Garamond";
    src: url("fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "Cormorant Garamond";
    src: url("fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2");
    font-style: italic;
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "Cormorant Garamond";
    src: url("fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: "DM Sans";
    src: url("fonts/dm-sans-latin-400-normal.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "DM Sans";
    src: url("fonts/dm-sans-latin-600-normal.woff2") format("woff2");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: "DM Sans";
    src: url("fonts/dm-sans-latin-700-normal.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

:root {
    --ink: #1f2419;
    --cream: #f6f0e4;
    --forest: #3b5634;
    --sage: #4d755e;
    --pale-sage: #c6dabe;
    --gold: #d4a843;
    --panel: #fffaf1;
    --line: rgba(59, 86, 52, .22);
    --danger: #963c34;
    --shadow: 0 18px 50px rgba(31, 36, 25, .08);
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background: var(--cream);
    font: 400 16px/1.6 "DM Sans", system-ui, sans-serif;
}
a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--sage); }
button, input { font: inherit; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
    color: var(--cream);
    background: var(--forest);
    box-shadow: 0 8px 28px rgba(31, 36, 25, .10);
}
.site-header .link-button {
    color: var(--cream);
}

.site-header .link-button:hover {
    color: var(--gold);
}
.header-inner {
    min-height: 94px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    color: var(--cream);
    text-decoration: none;
}
.brand:hover { color: var(--cream); }
.brand-logo { display: block; width: 190px; height: auto; }
.brand-tool {
    padding-left: 16px;
    border-left: 1px solid rgba(246, 240, 228, .55);
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

main.shell { padding-block: 58px 84px; }
h1, h2 {
    margin: 0 0 16px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -.025em;
}
h1 { font-size: clamp(2.7rem, 6vw, 4.3rem); }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
p { margin: 0 0 18px; }
.eyebrow {
    margin-bottom: 9px;
    color: var(--sage);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.panel {
    padding: clamp(26px, 4vw, 44px);
    border: 1px solid var(--line);
    border-radius: 2px;
    background: rgba(255, 250, 241, .82);
    box-shadow: var(--shadow);
}
.narrow { width: min(600px, 100%); margin: 5vh auto 0; }
.login-panel { border-top: 5px solid var(--gold); }
.login-panel p:not(.eyebrow) { max-width: 47ch; color: rgba(31, 36, 25, .72); }
.stack { display: grid; gap: 24px; }
label { display: grid; gap: 8px; font-weight: 600; }
input {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid rgba(59, 86, 52, .38);
    border-radius: 2px;
    color: var(--ink);
    background: #fffdf8;
}
input:focus { outline: 3px solid rgba(212, 168, 67, .30); border-color: var(--sage); }

button, .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 48px;
    padding: 12px 22px;
    border: 0;
    border-radius: 300px;
    color: var(--cream);
    background: var(--forest);
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .18s ease, transform .18s ease;
}
button:hover, .button:hover { color: var(--cream); background: var(--sage); transform: translateY(-1px); }
.button-secondary { color: var(--forest); background: var(--pale-sage); }
.button-secondary:hover { color: var(--cream); background: var(--sage); }
.link-button {
    min-height: 0;
    padding: 8px 0;
    border-radius: 0;
    color: var(--ink);
    background: transparent;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.link-button:hover { color: var(--forest); background: transparent; transform: none; }

.page-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}
.page-heading h1 { margin-bottom: 0; }
.table-panel { padding: 0; overflow: hidden; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td {
    padding: 19px 17px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}
th {
    color: var(--forest);
    background: var(--pale-sage);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(198, 218, 190, .18); }
td strong { display: block; margin-bottom: 4px; }
.destination { max-width: 340px; overflow-wrap: anywhere; }
.copy-button {
    display: block;
    max-width: 270px;
    min-height: 0;
    padding: 0;
    border-radius: 0;
    color: var(--sage);
    background: transparent;
    font-size: .86rem;
    font-weight: 400;
    text-align: left;
    overflow-wrap: anywhere;
}
.copy-button:hover { color: var(--forest); background: transparent; text-decoration: underline; transform: none; }
.status { display: inline-block; padding: 5px 10px; border-radius: 300px; font-size: .75rem; font-weight: 700; }
.status-on { color: #254931; background: #dcebdd; }
.status-off { color: #77362f; background: #efe0dc; }
.actions { min-width: 190px; }
.actions a, .actions form { display: inline-block; margin: 0 10px 6px 0; }
.text-action {
    min-height: 0;
    padding: 0;
    border-radius: 0;
    color: var(--sage);
    background: transparent;
    font-weight: 400;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.text-action:hover { color: var(--forest); background: transparent; transform: none; }
.text-action.danger { color: var(--danger); }

.form-panel { max-width: 780px; border-top: 5px solid var(--gold); }
.form-row { display: grid; grid-template-columns: minmax(130px, .45fr) minmax(250px, 1fr); gap: 22px; align-items: start; }
.hint { display: block; color: rgba(31, 36, 25, .65); font-size: .84rem; font-weight: 400; }
.optional { color: rgba(31, 36, 25, .62); font-weight: 400; }
.fixed-link {
    padding: 13px 15px;
    border-left: 4px solid var(--gold);
    background: rgba(198, 218, 190, .35);
    overflow-wrap: anywhere;
}

.flash {
    max-width: 780px;
    margin: 0 0 24px;
    padding: 14px 17px;
    border: 1px solid transparent;
    border-radius: 2px;
    font-weight: 600;
}
.flash-success { color: #254931; background: #dcebdd; border-color: #b9d5bd; }
.flash-error { color: #7b302b; background: #f5dfda; border-color: #e2b9b2; }
.flash-notice { color: #5f481c; background: #f5e8c5; border-color: #e3ca86; }
.form-panel .flash { margin: 0; }
.empty-state { padding-block: 76px; text-align: center; border-top: 5px solid var(--gold); }
.qr-panel {
    display: grid;
    grid-template-columns: minmax(250px, 420px) 1fr;
    gap: clamp(30px, 5vw, 64px);
    align-items: center;
    border-top: 5px solid var(--gold);
}
.qr-preview { width: 100%; aspect-ratio: 1; border: 1px solid var(--line); background: white; }
.qr-preview canvas { display: block; width: 100%; height: 100%; }
.short-url {
    color: var(--forest);
    font: 600 clamp(1.45rem, 3vw, 2.15rem)/1.15 "Cormorant Garamond", Georgia, serif;
    overflow-wrap: anywhere;
}
.button-row { display: flex; flex-wrap: wrap; gap: 11px; margin: 26px 0 15px; }

@media (max-width: 760px) {
    .shell { width: min(100% - 28px, 1180px); }
    .header-inner { min-height: 82px; }
    .brand-logo { width: 164px; }
    .brand-tool { display: none; }
    main.shell { padding-top: 38px; }
    .page-heading { align-items: start; flex-direction: column; }
    .form-row, .qr-panel { grid-template-columns: 1fr; }
    .qr-preview { max-width: 420px; }
    th, td { padding: 14px 12px; }
}
