@font-face {
  font-family: 'Playfair Display';
  src: url('/fonts/playfair-display-variable.ttf') format('truetype');
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('/fonts/montserrat-variable.ttf') format('truetype');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --ld-champagner: #D8C28A;
  --ld-oliv: #6B7F3A;
  --ld-dunkeloliv: #2E3E1F;
  --ld-anthrazit: #222222;
  --ld-elfenbein: #F2EFE6;
  --ld-weiss: #FFFFFF;
  --ld-page-background: var(--ld-anthrazit);
  --ld-page-text: var(--ld-elfenbein);
  --ld-page-heading: var(--ld-champagner);
  --ld-page-muted: color-mix(in srgb, var(--ld-elfenbein) 75%, var(--ld-anthrazit));
  --ld-page-line: color-mix(in srgb, var(--ld-elfenbein) 25%, transparent);
  --ld-page-surface: color-mix(in srgb, var(--ld-anthrazit) 78%, #000000);
  --ld-font-heading: 'Playfair Display', Georgia, serif;
  --ld-font-ui: 'Montserrat', Arial, sans-serif;
  --ld-space-1: 4px;
  --ld-space-2: 8px;
  --ld-space-3: 12px;
  --ld-space-4: 16px;
  --ld-space-6: 24px;
  --ld-space-8: 32px;
  --ld-space-12: 48px;
  --ld-space-16: 64px;
  --ld-radius-control: 6px;
  --ld-radius-panel: 12px;
  --ld-control-height: 48px;
  --ld-motion-duration: 180ms;
  --ld-motion-ease: cubic-bezier(.16, 1, .3, 1);
}

:root {
  --champagne: #d8c28a;
  --olive: #6b7f3a;
  --olive-dark: #2e3e1f;
  --anthracite: #222222;
  --ivory: #f2efe6;
  --white: #ffffff;
  --muted: var(--ld-page-muted);
  --line: var(--ld-page-line);
  --line-light: var(--ld-page-line);
  --surface: var(--ld-page-surface);
  --shell: min(77.5rem, calc(100% - 6rem));
  color-scheme: dark;
  color: var(--ivory);
  background: var(--anthracite);
  font-family: "Montserrat", Arial, sans-serif;
  font-synthesis: none;
  line-height: 1.65;
}
* { box-sizing: border-box; }
html { min-width: 20rem; scroll-padding-top: 7rem; scrollbar-color: var(--olive) var(--anthracite); }
body { min-height: 100vh; margin: 0; color: var(--ivory); background: var(--anthracite); }
button, input, select, textarea { font: inherit; }
a { color: var(--champagne); text-underline-offset: .25em; text-decoration-thickness: .08em; }
a:hover { text-decoration-color: var(--olive); }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled, input:disabled { cursor: not-allowed; opacity: .55; }
input { caret-color: var(--champagne); }
::selection { color: var(--ivory); background: var(--olive-dark); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--champagne); outline-offset: 4px; }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link { position: fixed; top: -6rem; left: 1rem; z-index: 100; padding: .8rem 1rem; color: var(--ivory); background: var(--olive-dark); }
.skip-link:focus { top: 1rem; }
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: var(--anthracite); }
.header-layout { min-height: 6rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { min-width: 0; display: inline-flex; align-items: center; padding: .8rem .4rem; text-decoration: none; }
.brand picture { display: block; }
.brand-logo { display: block; width: 17rem; height: auto; }
.header-actions { display: flex; align-items: center; gap: .65rem; }
.language-toggle { min-height: var(--ld-control-height); display: inline-flex; align-items: center; gap: .25rem; border: 0; border-radius: 0; padding: .5rem .6rem; color: var(--ivory); background: transparent; font-size: .76rem; font-weight: 600; text-decoration: none; }
.language-toggle:hover { color: var(--champagne); background: rgb(107 127 58 / 10%); }
.account-control { position: relative; min-height: var(--ld-control-height); }
.account-link, .account-trigger, .account-button { min-height: var(--ld-control-height); display: flex; align-items: center; gap: .55rem; border: 1px solid var(--line); border-radius: var(--ld-radius-control); padding: .3rem .75rem .3rem .35rem; color: var(--ivory); background: var(--anthracite); font-size: .78rem; font-weight: 600; text-decoration: none; }
.account-link:hover, .account-trigger:hover, .account-button:hover { color: var(--ivory); background: var(--olive-dark); }
.account-avatar { width: 2rem; height: 2rem; display: grid; place-items: center; flex: none; border-radius: 50%; color: var(--ivory); background: var(--olive-dark); font-size: .78rem; font-weight: 700; text-transform: uppercase; }
.account-avatar svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.account-link:hover .account-avatar, .account-trigger:hover .account-avatar, .account-button:hover .account-avatar { color: var(--anthracite); background: var(--champagne); }
.account-control[data-state="loading"] .account-avatar { color: transparent; background: var(--line); }
.account-name, .account-label, .truncate, #account-label { max-width: 10rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chevron { width: 1rem; height: 1rem; margin-left: auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 180ms ease-out; }
[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.account-menu { position: absolute; top: calc(100% + .65rem); right: 0; width: min(19rem, calc(100vw - 2rem)); border-radius: var(--ld-radius-panel); padding: 1rem; color: var(--ivory); background: var(--surface); border: 1px solid var(--line); }
.account-menu-label, .account-menu > p, .account-menu > small { margin: 0; color: var(--muted); font-size: .76rem; }
.account-menu strong { display: block; margin: .15rem 0 .8rem; overflow-wrap: anywhere; }
.account-menu a, .account-menu button { width: 100%; min-height: var(--ld-control-height); display: flex; align-items: center; justify-content: flex-start; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: .5rem 0; color: var(--ivory); background: transparent; font-size: .82rem; font-weight: 600; text-decoration: none; }
.account-menu a:hover, .account-menu button:hover { color: var(--champagne); background: rgb(107 127 58 / 8%); }
h1, h2, h3 { margin-top: 0; color: var(--champagne); font-family: "Playfair Display", Georgia, serif; font-weight: 400; text-wrap: balance; letter-spacing: -.025em; }
.button, .primary-button, form button, .settings-form > button, .pending-section > button { width: fit-content; min-height: 3.1rem; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 1px solid var(--champagne); border-radius: var(--ld-radius-control); padding: .8rem 1.2rem; color: var(--anthracite); background: var(--champagne); font-size: .84rem; font-weight: 600; text-decoration: none; }
.button:hover, .primary-button:hover, form button:hover, .settings-form > button:hover, .pending-section > button:hover { border-color: var(--champagne); background: color-mix(in srgb, var(--champagne) 88%, var(--anthracite)); color: var(--anthracite); }
.button:active, form button:active { transform: translateY(1px); }
input:not([type="checkbox"]):not([type="radio"]), textarea, select { width: 100%; min-width: 0; min-height: 3rem; border: 1px solid var(--line); border-radius: var(--ld-radius-control); padding: .65rem .85rem; color: var(--ivory); background: var(--surface); }
input::placeholder, textarea::placeholder { color: var(--muted); }
input[type="checkbox"], input[type="radio"] { width: 1.3rem; height: 1.3rem; flex: none; accent-color: var(--champagne); }
label, legend { font-size: .9rem; font-weight: 600; }
dt, dd, time { font-variant-numeric: tabular-nums; }
.site-footer { border-top: 1px solid var(--line-light); color: var(--ivory); background: var(--anthracite); }
.footer-layout { min-height: 9rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: 2rem; font-size: .76rem; }
.footer-logo { display: block; width: 17rem; height: auto; }
.footer-layout p { margin: 0; color: rgb(242 239 230 / 80%); }
.footer-layout strong { color: var(--champagne); }
.footer-layout nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem 1.25rem; }
.footer-layout a { color: var(--ivory); }
.site-footer :focus-visible { outline-color: var(--champagne); }
@media (max-width: 52rem) {
  :root { --shell: min(77.5rem, calc(100% - 4rem)); }
  .header-layout { min-height: 5.35rem; }
  .brand-logo { width: 14.5rem; }
}
@media (max-width: 40rem) {
  :root { --shell: min(77.5rem, calc(100% - 2.5rem)); }
  .header-layout { gap: .5rem; }
  .brand { padding: .5rem 0; }
  .brand-logo { width: 3rem; height: 3rem; }
  .header-actions { gap: .2rem; }
  .language-toggle { padding-inline: .35rem; font-size: .7rem; }
  .account-link, .account-trigger, .account-button { width: 2.75rem; padding: .35rem; }
  .account-name, .account-label, .truncate, #account-label, .chevron, .account-button > span:last-child:not(.account-avatar) { display: none; }
  .account-menu { position: fixed; top: 5.75rem; right: .625rem; left: .625rem; width: auto; }
  .footer-layout { align-items: flex-start; flex-direction: column; }
  .footer-logo { width: 14rem; }
  .footer-layout nav { justify-content: flex-start; }
}
@media (prefers-reduced-motion: no-preference) {
  a, button, input { transition: color 180ms ease-out, background-color 180ms ease-out, border-color 180ms ease-out; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

.language-toggle [data-language].is-current { color: var(--champagne); text-decoration: underline; text-underline-offset: .3em; }
.brand { padding: 1rem .85rem; }
.account-control { min-width: 0; }
.account-menu a:hover, .account-menu button:hover { color: var(--champagne); }
input:not([type="checkbox"]):not([type="radio"]):focus, textarea:focus, select:focus { border-color: var(--champagne); }
input[aria-invalid="true"] { border: 2px solid var(--champagne); }
h1, h2, h3 { overflow-wrap: anywhere; }
@media(max-width:40rem) { .brand { padding: .75rem; } .brand-logo { width: 3rem; height: 3rem; } .account-link, .account-trigger, .account-button { width: 3rem; } .account-link > span:last-child:not(.account-avatar) { display: none; } }
@media(max-width:23.75rem) { :root { --shell: calc(100% - 2rem); } }
