:root {
    --ivory: #f5f0e6;
    --paper: #fffdf8;
    --ink: #161412;
    --soft-ink: #514a42;
    --gold: #9f7028;
    --pale-gold: #c7ab78;
    --line: rgba(159, 112, 40, 0.42);
    --black: #0a0908;
    --success: #435843;
    --danger: #813c35;
    --shadow: 0 24px 80px rgba(27, 20, 10, 0.1);
    --serif: "Cormorant Garamond", "Baskerville",
        "Times New Roman", serif;
    --body: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--ivory);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.7;
}

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

a {
    color: inherit;
}

h1,
h2,
h3 {
    margin-top: 0;
    font-family: var(--serif);
    font-weight: 400;
}

h1 {
    font-size: clamp(3rem, 7vw, 7.25rem);
    line-height: 0.91;
    letter-spacing: 0.015em;
    text-transform: uppercase;
}

h2 {
    font-size: clamp(2.2rem, 4.2vw, 4.5rem);
    line-height: 1.06;
}

h3 {
    font-size: 1.7rem;
}

.site-header {
    position: absolute;
    z-index: 20;
    top: 0;
    left: 0;
    width: 100%;
    padding: 32px 5vw;
}

.brand-mark {
    display: block;
    width: min(250px, 55vw);
}

.brand-mark img {
    width: 100%;
}

.eyebrow {
    margin: 0 0 24px;
    color: var(--gold);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.34em;
    text-transform: uppercase;
}

.hero {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 180px 24px 100px;
    text-align: center;
}

.invitation-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 50% 15%,
            rgba(255, 255, 255, 0.85),
            transparent 44%
        ),
        linear-gradient(180deg, #fbf8f1, var(--ivory));
}

.invitation-hero::before,
.invitation-hero::after {
    content: "";
    position: absolute;
    top: 12%;
    bottom: 12%;
    width: 1px;
    background: linear-gradient(
        transparent,
        var(--line),
        transparent
    );
}

.invitation-hero::before {
    left: 7vw;
}

.invitation-hero::after {
    right: 7vw;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1120px;
}

.script-line {
    margin: 20px 0;
    font-family: var(--serif);
    font-size: clamp(1.8rem, 3.2vw, 3.5rem);
    font-style: italic;
    letter-spacing: 0.06em;
}

.gold-divider {
    width: 210px;
    height: 24px;
    margin: 25px auto;
    display: flex;
    align-items: center;
}

.gold-divider::before,
.gold-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--gold);
}

.gold-divider span {
    width: 9px;
    height: 9px;
    margin: 0 16px;
    background: var(--gold);
    transform: rotate(45deg);
}

.event-date,
.event-location {
    margin: 0;
    font-family: var(--serif);
    font-size: 1.3rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.event-date {
    color: var(--gold);
}

.hero-presence {
    margin-top: 45px;
    font-size: 0.76rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.guest-heading {
    margin-bottom: 12px;
    font-size: clamp(2rem, 3.8vw, 4rem);
}

.guest-heading span {
    display: block;
    color: var(--gold);
    font-style: italic;
}

.estate-line {
    font-family: var(--serif);
    font-size: 1.3rem;
    letter-spacing: 0.07em;
}

.button {
    appearance: none;
    display: inline-block;
    border: 1px solid var(--gold);
    padding: 15px 28px;
    cursor: pointer;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-decoration: none;
    text-transform: uppercase;
    transition:
        color 180ms ease,
        background 180ms ease,
        transform 180ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button:disabled {
    cursor: wait;
    opacity: 0.58;
}

.button-primary {
    margin-top: 30px;
    color: white;
    background: var(--gold);
}

.button-primary:hover {
    background: #80571d;
}

.button-secondary {
    color: var(--gold);
    background: transparent;
}

.editorial-section,
.details-section,
.reservation-section,
.availability-section {
    padding: clamp(80px, 11vw, 160px) 6vw;
}

.narrow-copy {
    max-width: 790px;
    margin: auto;
    font-family: var(--serif);
    font-size: clamp(1.18rem, 2vw, 1.55rem);
}

.narrow-copy p {
    margin: 0 0 1.45em;
}

.signature {
    margin-top: 55px;
}

.signature-name {
    margin-bottom: 0 !important;
    color: var(--gold);
    font-family: var(--serif);
    font-size: 1.65rem;
    font-style: italic;
}

.image-break {
    height: min(78vh, 820px);
    overflow: hidden;
    background: var(--black);
}

.image-break img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.details-section {
    background: var(--paper);
}

.details-grid {
    max-width: 1160px;
    margin: auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 8vw;
    align-items: start;
}

.included-card {
    border-top: 1px solid var(--gold);
    border-bottom: 1px solid var(--gold);
    padding: 38px 0;
}

.included-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.included-card li {
    position: relative;
    padding: 12px 0 12px 24px;
    border-bottom: 1px solid rgba(159, 112, 40, 0.18);
}

.included-card li::before {
    content: "◆";
    position: absolute;
    left: 0;
    top: 13px;
    color: var(--gold);
    font-size: 0.5rem;
}

.practical-section {
    padding: 80px 6vw;
    background: #14110e;
    color: #f7f0e3;
}

.practical-grid {
    max-width: 1240px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 34px;
}

.practical-grid article {
    padding-left: 22px;
    border-left: 1px solid var(--gold);
}

.practical-grid strong,
.practical-grid small {
    display: block;
}

.practical-grid strong {
    font-family: var(--serif);
    font-size: 1.45rem;
    font-weight: 400;
}

.practical-grid small {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.65);
}

.detail-label {
    display: block;
    margin-bottom: 8px;
    color: var(--gold);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.availability-section {
    background: var(--paper);
    text-align: center;
}

.availability-panel {
    max-width: 640px;
    margin: auto;
    padding: 60px;
    border: 1px solid var(--gold);
    box-shadow: var(--shadow);
}

.availability-number {
    margin: 0;
    color: var(--gold);
    font-family: var(--serif);
    font-size: clamp(5rem, 12vw, 9rem);
    line-height: 0.85;
}

.availability-copy {
    font-family: var(--serif);
    font-size: 1.8rem;
}

.availability-note {
    max-width: 430px;
    margin: 30px auto 0;
    color: var(--soft-ink);
}

.form-heading {
    max-width: 730px;
    margin: 0 auto 52px;
    text-align: center;
}

.series-form {
    max-width: 900px;
    margin: auto;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.series-form label > span {
    display: block;
    margin-bottom: 8px;
    font-size: 0.77rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.series-form input,
.series-form select,
.series-form textarea {
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--gold);
    border-radius: 0;
    padding: 13px 2px;
    color: var(--ink);
    background: transparent;
    font: inherit;
}

.series-form input:focus,
.series-form select:focus,
.series-form textarea:focus {
    outline: 2px solid rgba(159, 112, 40, 0.2);
    outline-offset: 5px;
}

.full-width {
    display: block;
    margin-top: 30px;
}

.checkbox-row {
    margin-top: 25px;
    display: grid !important;
    grid-template-columns: 20px 1fr;
    gap: 14px;
    align-items: start;
}

.checkbox-row input {
    width: 18px;
    margin-top: 5px;
}

.checkbox-row span {
    margin: 0 !important;
    font-size: 0.9rem !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
}

.form-message {
    margin-top: 20px;
    color: var(--gold);
}

.site-footer {
    padding: 65px 24px;
    color: #efe7d8;
    background: #080706;
    text-align: center;
}

.site-footer img {
    width: 220px;
    margin: 0 auto 28px;
}
.footer-credit {
  margin-top: 18px;
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: none;
  color: rgba(201, 163, 82, 0.72);
}

.footer-credit a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-credit a:hover,
.footer-credit a:focus-visible {
  color: rgba(201, 163, 82, 1);
}

@media (max-width: 600px) {
  .footer-credit {
    margin-top: 14px;
    font-size: 8px;
  }

  .footer-credit__separator {
    margin: 0 2px;
  }
}
.dashboard-page {
    min-height: 100vh;
    padding: 170px 5vw 100px;
}

.dashboard-intro {
    max-width: 1000px;
    margin: 0 auto 70px;
    text-align: center;
}

.dashboard-intro h1 {
    font-size: clamp(2.6rem, 6vw, 5.8rem);
}

.guest-dashboard {
    max-width: 1050px;
    margin: auto;
    padding: clamp(28px, 5vw, 70px);
    background: var(--paper);
    box-shadow: var(--shadow);
}

.status-heading {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
}

.status-heading strong {
    display: block;
    font-family: var(--serif);
    font-size: 1.55rem;
}

.status-badge {
    display: inline-block;
    padding: 7px 12px;
    border: 1px solid currentColor;
    border-radius: 100px;
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}

.status-confirmed {
    color: var(--success);
}

.status-payment_reported {
    color: var(--gold);
}

.status-held {
    color: #7b6742;
}

.status-expired,
.status-cancelled {
    color: var(--danger);
}

.countdown-panel {
    margin: 35px 0;
    padding: 32px;
    color: white;
    background: var(--black);
    text-align: center;
}

.countdown-panel span,
.countdown-panel small,
.countdown-value {
    display: block;
}

.countdown-value {
    margin: 10px 0;
    color: var(--pale-gold);
    font-family: var(--serif);
    font-size: clamp(2.4rem, 7vw, 5rem);
    font-weight: 400;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 46px 0;
}

.dashboard-grid article {
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.dashboard-grid strong {
    overflow-wrap: anywhere;
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 400;
}

.payment-card {
    margin-top: 50px;
    padding: clamp(24px, 5vw, 55px);
    border: 1px solid var(--gold);
}

.payment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.payment-reference {
    margin: 30px 0;
    padding: 18px;
    background: rgba(159, 112, 40, 0.08);
}

.notice {
    margin: 28px 0;
    padding: 25px;
    border-left: 3px solid;
}

.notice-success {
    border-color: var(--success);
    background: rgba(67, 88, 67, 0.08);
}

.notice-error {
    border-color: var(--danger);
    background: rgba(129, 60, 53, 0.08);
}

.notice-muted {
    border-color: #817a70;
    background: rgba(80, 75, 68, 0.07);
}

/* Administration */

.admin-body {
    background: #eee9df;
}

.admin-header {
    padding: 30px 4vw;
    display: flex;
    justify-content: space-between;
    gap: 25px;
    color: white;
    background: #0c0a08;
}

.admin-header h1 {
    margin: 0;
    font-size: 2rem;
    text-transform: none;
}

.admin-header nav {
    display: flex;
    gap: 22px;
    align-items: center;
}

.admin-main {
    padding: 40px 4vw 90px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.admin-stats article {
    padding: 25px;
    background: var(--paper);
    border-top: 3px solid var(--gold);
}

.admin-stats span,
.admin-stats strong {
    display: block;
}

.admin-stats span {
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-stats strong {
    margin-top: 10px;
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 400;
}

.admin-panel {
    margin-top: 32px;
    padding: 30px;
    background: var(--paper);
}

.admin-panel-heading {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: end;
    margin-bottom: 24px;
}

.admin-panel-heading h2 {
    margin-bottom: 0;
    font-size: 2.2rem;
}

.admin-filter {
    display: flex;
    gap: 10px;
}

.admin-filter input,
.admin-filter select {
    min-height: 45px;
    border: 1px solid #bca97e;
    padding: 8px 12px;
    background: white;
}

.table-scroll {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.admin-table th,
.admin-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #ded7c9;
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    color: var(--gold);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.admin-table small {
    display: block;
    color: #7d756c;
}

.admin-actions {
    min-width: 150px;
}

.small-button {
    width: 100%;
    margin-bottom: 6px;
    border: 1px solid #a89775;
    padding: 7px 9px;
    cursor: pointer;
    background: white;
}

.confirm-button {
    color: white;
    background: var(--success);
    border-color: var(--success);
}

.danger-button {
    color: var(--danger);
}

.admin-login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 25px;
    background: #0a0908;
}

.admin-login {
    width: min(460px, 100%);
    padding: 50px;
    background: var(--paper);
}

.admin-login img {
    width: 220px;
    margin: 0 auto 35px;
}

.admin-login h1 {
    font-size: 3rem;
    text-transform: none;
}

.admin-login .series-form label {
    display: block;
    margin-bottom: 25px;
}

@media (max-width: 900px) {
    .details-grid,
    .practical-grid,
    .dashboard-grid,
    .admin-stats {
        grid-template-columns: 1fr 1fr;
    }

    .admin-panel-heading {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 650px) {
    .site-header {
        padding: 24px;
    }

    .brand-mark {
        width: 180px;
    }

    .form-grid,
    .details-grid,
    .practical-grid,
    .dashboard-grid,
    .payment-grid,
    .admin-stats {
        grid-template-columns: 1fr;
    }

    .availability-panel,
    .guest-dashboard,
    .admin-login {
        padding: 30px 22px;
    }

    .status-heading,
    .admin-header,
    .admin-filter {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-header nav {
        align-items: flex-start;
    }

    h1 {
        font-size: 3rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
    }
}