/* Brand webfonts. Files live in /assets/fonts — ship them with styles.css. */
@font-face{font-family:"Higuen Serif";src:url("../fonts/HiguenSerif-Regular.otf") format("opentype");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"PP Telegraf";src:url("../fonts/PPTelegraf-Regular.otf") format("opentype");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"PP Telegraf";src:url("../fonts/PPTelegraf-Bold.otf") format("opentype");font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:"Montserrat";src:url("../fonts/Montserrat-Light.ttf") format("truetype");font-weight:300;font-style:normal;font-display:swap}
@font-face{font-family:"Montserrat";src:url("../fonts/Montserrat-Regular.ttf") format("truetype");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Montserrat";src:url("../fonts/Montserrat-Italic.ttf") format("truetype");font-weight:400;font-style:italic;font-display:swap}
@font-face{font-family:"Montserrat";src:url("../fonts/Montserrat-Bold.ttf") format("truetype");font-weight:700;font-style:normal;font-display:swap}

:root{
  /* ---- Base palette: the four brand HEX values ---- */
  --plum-700:#4e2e36;   /* brand primary — deep aubergine-brown */
  --gold-500:#a58025;   /* brand accent — antique gold */
  --cream-100:#f6f4ef;  /* page background */
  --cream-200:#f5f1e9;  /* warmer alternating background */

  /* ---- Derived plum ramp (hue held at the brand plum) ---- */
  --plum-900:#2f1a1f;
  --plum-800:#3d232a;
  --plum-600:#6b4550;
  --plum-500:#7d5c64;
  --plum-400:#9d8189;
  --plum-300:#c2aeb3;
  --plum-200:#e3d7da;
  --plum-100:#f1e8e9;

  /* ---- Derived gold ramp ---- */
  --gold-700:#7d6119;
  --gold-600:#8c6c1f;
  --gold-400:#c2a04a;
  --gold-300:#d4bd7d;
  --gold-200:#e6d6ac;
  --gold-100:#f1e8d2;

  /* ---- Neutrals ---- */
  --white:#ffffff;
  --cream-50:#fbfaf7;
  --cream-300:#e9e2d4;
  --cream-400:#d9cfbc;

  /* ---- Alpha values for borders, veils, shadows ---- */
  --plum-a08:rgba(78,46,54,.08);
  --plum-a14:rgba(78,46,54,.14);
  --plum-a24:rgba(78,46,54,.24);
  --plum-a60:rgba(78,46,54,.60);
  --plum-a88:rgba(78,46,54,.88);
  --gold-a12:rgba(165,128,37,.12);
  --gold-a40:rgba(165,128,37,.40);

  /* ---- Semantic: text ---- */
  --text-heading:var(--plum-900);
  --text-body:var(--plum-700);
  --text-muted:var(--plum-500);
  --text-faint:var(--plum-400);
  --text-accent:var(--gold-700);
  --text-on-plum:var(--cream-100);
  --text-on-gold:var(--white);
  --text-link:var(--gold-700);
  --text-link-hover:var(--plum-700);

  /* ---- Semantic: surfaces ---- */
  --surface-page:var(--cream-100);
  --surface-alt:var(--cream-200);
  --surface-card:var(--white);
  --surface-raised:var(--cream-50);
  --surface-plum:var(--plum-700);
  --surface-plum-deep:var(--plum-900);
  --surface-gold:var(--gold-500);
  --surface-gold-soft:var(--gold-100);
  --surface-blush:var(--plum-100);
  --surface-veil:var(--plum-a88);

  /* ---- Semantic: lines ---- */
  --border-subtle:var(--cream-300);
  --border-default:var(--plum-a14);
  --border-strong:var(--plum-a24);
  --border-gold:var(--gold-300);
  --rule-hairline:var(--gold-a40);

  /* ---- Semantic: interactive ---- */
  --action-primary:var(--plum-700);
  --action-primary-hover:var(--plum-800);
  --action-primary-active:var(--plum-900);
  --action-accent:var(--gold-500);
  --action-accent-hover:var(--gold-600);
  --action-accent-active:var(--gold-700);
  --action-disabled:var(--plum-200);
  --focus-ring:var(--gold-500);

  /* ---- Status: a minimal set, kept inside the warm palette ---- */
  --status-success:#5c6f45;
  --status-success-soft:#eaeee1;
  --status-warning:var(--gold-600);
  --status-warning-soft:var(--gold-100);
  --status-error:#8f3b34;
  --status-error-soft:#f6e5e2;
  --status-info:var(--plum-600);
  --status-info-soft:var(--plum-100);
}

:root{
  /* ---- Families ---- */
  --font-display:"Higuen Serif","Cormorant Garamond",Georgia,"Times New Roman",serif;
  --font-sans:"PP Telegraf","Montserrat",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --font-tracked:"Montserrat",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --font-mono:ui-monospace,SFMono-Regular,Menlo,monospace;

  /* Semantic aliases */
  --font-heading:var(--font-display);
  --font-body:var(--font-sans);
  --font-eyebrow:var(--font-tracked);
  --font-ui:var(--font-sans);

  /* ---- Size scale ---- */
  --text-2xs:11px;
  --text-xs:12px;
  --text-sm:14px;
  --text-base:16px;
  --text-lg:18px;
  --text-xl:22px;
  --text-2xl:28px;
  --text-3xl:36px;
  --text-4xl:48px;
  --text-5xl:64px;
  --text-6xl:80px;

  /* ---- Weights ---- */
  --weight-light:300; /* @kind other */
  --weight-regular:400; /* @kind other */
  --weight-bold:700; /* @kind other */

  /* ---- Line heights ---- */
  --leading-tight:1.08; /* @kind other */
  --leading-snug:1.22; /* @kind other */
  --leading-normal:1.45; /* @kind other */
  --leading-body:1.62; /* @kind other */
  --leading-relaxed:1.78; /* @kind other */

  /* ---- Letter spacing ---- */
  --tracking-tight:-.01em;
  --tracking-normal:0;
  --tracking-wide:.04em;
  --tracking-wider:.09em;
  --tracking-eyebrow:.22em;
  --tracking-logo:.32em;

  /* ---- Ready-made roles ---- */
  --type-display-size:var(--text-5xl);
  --type-display-leading:var(--leading-tight); /* @kind other */
  --type-h1-size:var(--text-4xl);
  --type-h2-size:var(--text-3xl);
  --type-h3-size:var(--text-xl);
  --type-body-size:var(--text-base);
  --type-body-leading:var(--leading-body); /* @kind other */
  --type-small-size:var(--text-sm);
  --type-eyebrow-size:var(--text-xs);
  --measure-prose:64ch; /* @kind other */
  --measure-narrow:46ch; /* @kind other */
}

:root{
  --space-0:0px;
  --space-1:4px;
  --space-2:8px;
  --space-3:12px;
  --space-4:16px;
  --space-5:20px;
  --space-6:24px;
  --space-8:32px;
  --space-10:40px;
  --space-12:48px;
  --space-16:64px;
  --space-20:80px;
  --space-24:96px;
  --space-32:128px;

  /* Composition */
  --gutter-page:24px;         /* mobile page inset */
  --gutter-page-lg:48px;      /* desktop page inset */
  --container-narrow:720px;   /* long-form prose */
  --container-base:1080px;    /* standard content column */
  --container-wide:1240px;    /* hero / card grids */
  --section-y:80px;           /* vertical rhythm between sections */
  --section-y-lg:120px;
  --card-pad:28px;
  --stack-gap:16px;
}

:root{
  --radius-xs:4px;
  --radius-sm:8px;
  --radius-md:12px;
  --radius-lg:18px;
  --radius-xl:28px;
  --radius-2xl:40px;
  --radius-pill:999px;
  --radius-circle:50%;

  /* Semantic */
  --radius-button:var(--radius-pill);
  --radius-input:var(--radius-sm);
  --radius-card:var(--radius-lg);
  --radius-media:var(--radius-xl);
  --radius-badge:var(--radius-pill);
  --radius-dialog:var(--radius-lg);

  /* Borders */
  --border-width-hairline:1px;
  --border-width-emphasis:2px;
}

:root{
  /* Shadows are warm: the plum, never neutral grey or black. */
  --shadow-xs:0 1px 2px rgba(78,46,54,.06);
  --shadow-sm:0 2px 8px rgba(78,46,54,.07);
  --shadow-md:0 10px 28px -8px rgba(78,46,54,.14);
  --shadow-lg:0 24px 56px -16px rgba(78,46,54,.20);
  --shadow-hover:0 16px 34px -12px rgba(78,46,54,.20);
  --shadow-inset-hairline:inset 0 0 0 1px var(--plum-a08);
  --shadow-ring-gold:0 0 0 1px var(--gold-300);
  --shadow-focus:0 0 0 3px var(--gold-a40);

  /* Veils used to keep text legible over photography */
  --veil-plum:linear-gradient(180deg,rgba(78,46,54,0) 0%,rgba(78,46,54,.72) 100%); /* @kind other */
  --veil-cream:linear-gradient(180deg,rgba(246,244,239,0) 0%,rgba(246,244,239,.95) 100%); /* @kind other */
  --blur-panel:blur(10px); /* @kind other */
  --blur-veil:blur(20px); /* @kind other */

  --z-base:0; /* @kind other */
  --z-raised:10; /* @kind other */
  --z-sticky:100; /* @kind other */
  --z-header:200; /* @kind other */
  --z-overlay:900; /* @kind other */
  --z-dialog:1000; /* @kind other */
}

:root{
  --duration-instant:80ms; /* @kind other */
  --duration-fast:150ms; /* @kind other */
  --duration-base:240ms; /* @kind other */
  --duration-slow:420ms; /* @kind other */
  --duration-reveal:700ms; /* @kind other */

  /* Soft, decelerating curves only. No bounce, no overshoot. */
  --ease-out:cubic-bezier(.22,.68,0,1); /* @kind other */
  --ease-in-out:cubic-bezier(.45,0,.25,1); /* @kind other */
  --ease-gentle:cubic-bezier(.25,.46,.45,.94); /* @kind other */

  --transition-color:color var(--duration-fast) var(--ease-gentle),background-color var(--duration-fast) var(--ease-gentle),border-color var(--duration-fast) var(--ease-gentle); /* @kind other */
  --transition-transform:transform var(--duration-base) var(--ease-out); /* @kind other */
  --transition-shadow:box-shadow var(--duration-base) var(--ease-out); /* @kind other */

  --lift-hover:translateY(-2px); /* @kind other */
  --press-scale:.98; /* @kind other */
}
@media (prefers-reduced-motion:reduce){
  :root{--duration-fast:1ms; /* @kind other */ --duration-base:1ms; /* @kind other */ --duration-slow:1ms; /* @kind other */ --duration-reveal:1ms; /* @kind other */ --lift-hover:none /* @kind other */}
}

/* Minimal element defaults so a bare page already reads as the brand. */
*,*::before,*::after{box-sizing:border-box}
body{margin:0;background:var(--surface-page);color:var(--text-body);font-family:var(--font-body);font-size:var(--text-base);line-height:var(--leading-body);font-weight:var(--weight-regular);-webkit-font-smoothing:antialiased;text-wrap:pretty}
h1,h2,h3,h4{font-family:var(--font-heading);color:var(--text-heading);font-weight:var(--weight-regular);margin:0 0 var(--space-4);letter-spacing:var(--tracking-tight);text-wrap:balance}
h1{font-size:var(--type-h1-size);line-height:var(--leading-tight)}
h2{font-size:var(--type-h2-size);line-height:var(--leading-snug)}
h3{font-size:var(--type-h3-size);line-height:var(--leading-snug)}
h4{font-family:var(--font-body);font-size:var(--text-lg);line-height:var(--leading-normal)}
p{margin:0 0 var(--space-4);max-width:var(--measure-prose)}
strong,b{font-weight:var(--weight-bold);color:var(--text-heading)}
em{font-style:italic}
small{font-size:var(--text-sm)}
a{color:var(--text-link);text-decoration:none;border-bottom:1px solid var(--gold-a40);transition:var(--transition-color)}
a:hover{color:var(--text-link-hover);border-bottom-color:var(--plum-a24)}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:none;box-shadow:var(--shadow-focus);border-radius:var(--radius-xs)}
hr{border:none;border-top:1px solid var(--border-subtle);margin:var(--space-10) 0}
img{max-width:100%;display:block}
ul,ol{margin:0 0 var(--space-4);padding-left:var(--space-5)}
li{margin-bottom:var(--space-2)}
blockquote{margin:0;font-family:var(--font-heading);font-size:var(--text-xl);line-height:var(--leading-snug);color:var(--text-heading)}
::selection{background:var(--gold-200);color:var(--plum-900)}

