/* Forever After Events: local logo artwork, copper accents and Cormorant headings. */
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('fonts/CormorantGaramond-Regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  --paper: #fefdfb; /* Sampled from the border of both supplied JPEGs. */
  --white: #fefdfb;
  --canvas: #faf9f7;
  --ink: #322f2e;
  --muted: #646260;
  --line: #e5ddd7;
  --copper: #ac6d50;
  --clay: #95583f; /* Deeper copper for readable text and filled buttons. */
  --clay-dark: #78432f;
  --sage: #465d44;
  --sage-light: #edf1e9;
  --rose: #f5e8e0;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --radius: 8px;
}
body, .workspace { background: var(--canvas); }
h1 { font-size: clamp(36px, 3.6vw, 50px); letter-spacing: -.5px; line-height: 1.08; }
h2 { font-size: 28px; letter-spacing: -.3px; }
h3 { font-size: 24px; }
.eyebrow { color: var(--clay); font-size: 10px; letter-spacing: 1.8px; font-weight: 600; }
.sidebar, .topbar { background: var(--paper); }
.sidebar { padding-top: 25px; }
.studio-brand, .sidebar .studio-brand { white-space: normal; font-size: 24px; gap: 8px; letter-spacing: -.35px; }
.studio-monogram { display: block; width: 58px; height: 58px; flex-shrink: 0; object-fit: contain; }
.studio-brand>span { line-height: 1.08; }
.studio-brand small, .sidebar .studio-brand small { font-size: 8px; letter-spacing: 1.6px; line-height: 1.5; margin-top: 8px; }
.sidebar-caption { font-size: 8px; color: var(--muted); }
.main-nav a[aria-current] { background: #f5ece5; color: var(--clay); box-shadow: none; }
.workspace-brand { display: flex; align-items: center; gap: 12px; }
.workspace-brand img { object-fit: contain; display: block; flex-shrink: 0; }
.topbar { min-height: 72px; height: auto; padding-top: 12px; padding-bottom: 12px; gap: 16px; }
.page-heading { margin-bottom: 30px; }
.page-heading p { max-width: 48ch; line-height: 1.7; }
.panel, .stat-card { box-shadow: none; }
.stat-card { padding: 22px 24px; }
.stat-card>strong { font-size: 48px; }
.button { border-radius: 5px; font-size: 14px; min-height: 48px; background: var(--clay); color: var(--paper); }
.button.secondary { border-color: #bdb0a6; color: var(--ink); }
.button.secondary:hover { background: #f5ece5; }
.text-link { color: var(--clay); }
.field label { font-size: 13px; }
.field-hint { font-size: 12px; line-height: 1.65; }
input:not([type=checkbox]), textarea, select { background: var(--paper); border-color: #cfc4bc; border-radius: 5px; }
.required, .section-number { color: var(--clay); }
.section-number span { font-size: 26px; }
.attention-panel, .internal-note { background: #f4efea; }
.tip-note h3 { font-size: 24px; }
.decorative-star { display: inline-block; width: 24px; height: 24px; flex-shrink: 0; color: var(--copper); vertical-align: middle; }
.tip-note>.decorative-star, .studio-note>.decorative-star { display: block; }
.diary-note, .event-body>span { font-size: 12px; }
.badge { font-size: 12px; }
.badge.pending { color: #79502e; background: #f7eddf; }
.badge.review, .badge.ready { color: #40593e; background: #edf1e9; }
.badge.making { color: #3e5662; background: #e8eef1; }
.badge.complete { color: #55514a; background: #edeae4; }
.event-done { opacity: 1; }
.event-done .event-body strong, .calendar-event.event-done strong { text-decoration: line-through; text-decoration-color: #a39489; }
.event-meta .event-action { font-size: 11px; }
.calendar-event { padding: 7px 6px; }
.calendar-event>span, .calendar-event small { font-size: 11px; color: #565149; line-height: 1.45; }
.calendar-event strong { font-size: 12px; line-height: 1.4; }
.calendar-event.event-done { background: #f1eeea; border-color: #aaa096; }
.calendar-event.event-done small { color: #55514a; }
.calendar-weekday, .calendar-number { font-size: 12px; }
.legend { font-size: 12px; }
.calendar-grid { border-radius: 6px; }
.calendar-weekday { background: #f2ede7; }
.outside-month { background: #f6f3ef; }
.is-today .calendar-number { background: var(--clay); }
.public-layout { background: var(--paper); }
.public-header { border: 0; padding: 18px 20px 0; background: var(--paper); }
.full-brand { display: block; line-height: 0; }
.full-brand-logo { display: block; width: 168px; height: auto; max-width: 100%; object-fit: contain; }
.public-main { max-width: 700px; padding: 20px 24px 32px; }
.public-layout .panel { background: var(--paper); }
.public-layout .form-panel { padding: 25px; }
.customer-intro { margin-bottom: 22px; }
.customer-intro .eyebrow { margin-bottom: 7px; }
.customer-intro h1 { font-size: 42px; line-height: 1.1; letter-spacing: -.45px; margin: 5px 0 10px; }
.customer-intro p { max-width: 48ch; margin: 0 auto 12px; line-height: 1.65; font-size: 14px; }
.order-reference { padding: 4px 9px; font-size: 10px; border-color: var(--line); }
.agreed-summary { border-top: 2px solid #cb9582; margin-bottom: 22px; }
.public-layout details.agreed-summary { padding: 0; }
.agreed-summary summary { display: flex; align-items: center; gap: 14px; padding: 18px 22px; cursor: pointer; list-style: none; }
.agreed-summary summary::-webkit-details-marker { display: none; }
.agreed-summary summary>span:first-child { flex: 1; min-width: 0; }
.agreed-summary summary strong { display: block; font: 400 25px/1.2 var(--serif); }
.summary-hint { display: block; font-size: 12px; color: var(--muted); margin-top: 5px; }
.summary-total { font-size: 14px; font-weight: 600; white-space: nowrap; }
.agreed-summary summary::after { content: '+'; color: var(--clay); font-size: 22px; flex-shrink: 0; }
.agreed-summary[open] summary::after { content: '−'; }
.agreed-summary[open] summary { border-bottom: 1px solid var(--line); }
.agreed-summary-content { padding: 18px 22px 22px; }
.customer-form { gap: 18px; }
.customer-form .section-number { margin-bottom: 22px; padding-bottom: 14px; }
.customer-form>.small { font-size: 12px; }
.item-unit-price, .line-item-price, .quote-totals>div { font-size: 12px; }
.public-footer { color: #726259; font-size: 20px; padding-bottom: 30px; }
.public-footer span { font-size: 11px; }
.login-intro { margin-bottom: 22px; }
.login-intro h1 { font-size: 42px; margin-bottom: 10px; }
.login-panel { padding: 28px; }
.login-panel h2 { font-size: 28px; }
.receipt { margin-top: 4px; padding: 30px; }
.receipt-mark { margin-bottom: 20px; width: 52px; height: 52px; }
.receipt h1 { font-size: 43px; line-height: 1.1; letter-spacing: -.4px; }
@media (max-width:1200px) {
  .sidebar .studio-brand { font-size: 22px; }
  .studio-monogram { width: 48px; height: 48px; }
  .calendar-event strong { font-size: 11px; }
}
@media (max-width:760px) {
  .sidebar { padding: 14px 20px 0; }
  .sidebar .studio-brand { width: 228px; font-size: 23px; }
  .studio-monogram { width: 54px; height: 54px; }
  .sidebar .studio-brand small { font-size: 8px; }
  .sidebar-bottom { top: 25px; right: 20px; }
  .main-nav { margin-top: 13px; }
  .main-nav a { font-size: 13px; }
  .main-nav a[aria-current] { background: var(--canvas); }
  .topbar { min-height: 56px; padding: 6px 20px; }
  .workspace-brand { gap: 8px; font-size: 9px; letter-spacing: .6px; }
  .workspace-brand img { width: 28px; height: 28px; }
  .topbar-date { font-size: 11px; }
  .page-heading h1 { font-size: 40px; }
  .event-meta .badge { font-size: 11px; }
  .full-brand-logo { width: 144px; }
}
@media (max-width:540px) {
  .public-header { padding-top: max(8px, env(safe-area-inset-top)); }
  .full-brand-logo { width: 128px; }
  .public-main { padding: 14px 18px 28px; }
  .customer-intro { margin-bottom: 18px; }
  .customer-intro h1 { font-size: 34px; margin: 4px 0 8px; }
  .customer-intro p { font-size: 13px; line-height: 1.6; margin-bottom: 9px; }
  .customer-intro .eyebrow { font-size: 9px; }
  .order-reference { font-size: 9px; }
  .agreed-summary summary { padding: 16px; gap: 10px; }
  .agreed-summary summary strong { font-size: 22px; }
  .summary-hint { font-size: 11px; }
  .summary-total { font-size: 12px; }
  .agreed-summary-content { padding: 16px; }
  .public-layout .customer-form .form-panel { padding: 21px 18px; }
  .customer-form .section-number span { font-size: 25px; }
  .public-layout .field label { font-size: 13px; }
  .field-hint { font-size: 12px; }
  .item-unit-price { font-size: 11px; }
  .login-intro h1 { font-size: 34px; }
  .login-intro .eyebrow { margin-bottom: 8px; }
  .login-intro>p { margin-bottom: 0; }
  .login-panel { padding: 24px 20px; }
  .login-panel h2 { font-size: 26px; }
  .receipt { padding: 24px 20px; }
  .receipt h1 { font-size: 37px; }
  .receipt-mark { margin-bottom: 18px; }
  .legend { font-size: 11px; gap: 13px; }
  .event-body>span { font-size: 11px; }
  .event-meta .badge { font-size: 10px; }
  .event-row { padding: 16px 12px; }
  .tip-note>.decorative-star { float: left; margin-right: 14px; }
  .event-body strong { font-size: 14px; }
  .stat-card { padding: 14px 10px; }
  .stat-card>strong { font-size: 40px; }
  .stat-card .stat-label { font-size: 11px; }
  .stat-card .small { font-size: 10px; }
  .page-heading h1 { font-size: 38px; }
  .page-heading>.button { font-size: 14px; }
}
@media (max-width:360px) {
  .sidebar .studio-brand { width: 205px; font-size: 21px; }
  .studio-monogram { width: 45px; height: 45px; }
  .topbar-date { display: none; }
  .agreed-summary summary { flex-wrap: wrap; }
  .summary-total { margin-left: auto; }
}
