@font-face{
  font-family: 'Inter';
  src: url('/assets/fonts/inter-latin-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---- Display face: Fastelar ----
   Used for every headline and the menu options.
   NOTE: this is the DEMO release, licensed for PERSONAL USE only. A commercial
   licence (sayfont.com) is required before this goes live on a business site. */
@font-face{
  font-family: 'Fastelar';
  src: url('/assets/fonts/fastelar-demo-regular.woff2') format('woff2'),
       url('/assets/fonts/fastelar-demo-regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   cMedia Collective — shared design tokens + page shell
   Single source of truth for type, colour and spacing across every page
   except the canvas homepage, whose values these were extracted from.
   ========================================================================== */

:root{
  /* ---- Colour (lifted verbatim from the canvas page) ---- */
  --bg:         #000000;
  --text:       #F0EBE3;
  --muted:      #8d8778;
  --card-bg:    #0a0a0a;
  --border:     rgba(255,255,255,0.07);
  --border-hi:  rgba(255,255,255,0.18);
  --cream:      #f3efe0;   /* statement-card cream */

  /* Warm butter-yellow accent, site-wide. Named --accent; --gold is kept as an
     alias because about.css and its rules already reference it. */
  --accent:     #F5E8AA;
  --gold:       #F5E8AA;
  --ink:        #161616;   /* text on cream */

  /* ---- Type ---- */
  --serif: 'Fastelar', 'Didot', 'Times New Roman', serif;
  --display: 'Fastelar', 'Didot', 'Times New Roman', serif;
  --sans:  'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --t-hero:  clamp(34px, 6vw, 64px);
  --t-h2:    clamp(26px, 3.4vw, 38px);
  --t-h3:    20px;
  --t-lead:  clamp(18px, 1.5vw, 21px);
  --t-body:  17px;
  --t-small: 14.5px;
  --t-label: 13px;      /* letterspaced small-caps eyebrow */

  --lh-tight: 1.08;
  --lh-body:  1.68;

  /* ---- Spacing scale ---- */
  --s-1:  8px;
  --s-2:  16px;
  --s-3:  24px;
  --s-4:  32px;
  --s-5:  48px;
  --s-6:  72px;
  --s-7:  112px;

  --measure: 62ch;      /* generous single-column measure */
  --page:    1180px;
  --pad:     40px;
}

*{ box-sizing: border-box; }

html{ -webkit-text-size-adjust: 100%; }

body{
  margin: 0;
  font-synthesis-weight: none;   /* Fastelar has a single weight */
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a{ color: var(--text); }

h1, h2, h3, .work-cat, .menu a{ font-synthesis-weight: none; }

/* ---------- Header + hamburger ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--pad);
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .brand{ display: block; line-height: 0; }
.site-header .brand img{ height: 38px; width: auto; display: block; }

/* Low-contrast until hover, per spec */
.menu-toggle{
  appearance: none;
  background: none;
  border: 0;
  padding: 15px;
  margin: -15px;
  cursor: pointer;
  color: var(--text);
  transition: color .25s ease;
}
.menu-toggle:hover,
.menu-toggle:focus-visible{ color: var(--text); }
.menu-toggle svg{ display: block; }
.menu-toggle rect{ fill: currentColor; }

/* Panel markup is always in the DOM — CSS hides it, JS only toggles a class.
   Links that appear only after a click would not be crawlable. */
.menu{
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0,0,0,0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s ease, visibility .28s ease;
}
.menu[data-open="true"]{ opacity: 1; visibility: visible; }
.menu ul{ list-style: none; margin: 0; padding: 0; text-align: center; }
.menu li + li{ margin-top: var(--s-3); }
.menu a{
  font-family: var(--display);
  font-size: clamp(30px, 5vw, 52px);
  text-decoration: none;
  letter-spacing: -0.01em;
  opacity: .72;
  transition: opacity .2s ease, color .2s ease;
}
.menu a:hover,
.menu a:focus-visible,
.menu a[aria-current="page"]{ opacity: 1; color: var(--accent); }
.menu-close{
  position: absolute;
  top: 20px; right: var(--pad);
  appearance: none; background: none; border: 0;
  color: var(--muted); cursor: pointer; padding: 10px; margin: -10px;
  font-family: var(--sans); font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
}
.menu-close:hover, .menu-close:focus-visible{ color: var(--text); }

/* ---------- Page shell ---------- */
main{
  max-width: var(--page);
  margin: 0 auto;
  padding: var(--s-6) var(--pad) var(--s-7);
}
.prose{ max-width: var(--measure); }

h1{
  font-family: var(--display);
  font-size: var(--t-hero);
  font-weight: 400;
  line-height: var(--lh-tight);
  letter-spacing: -0.015em;
  margin: 0 0 var(--s-4);
  max-width: 20ch;
}
h2{
  font-family: var(--display);
  font-size: var(--t-h2);
  font-weight: 400;
  line-height: 1.15;
  margin: var(--s-6) 0 var(--s-2);
}
h3{
  font-family: var(--display);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: var(--s-5) 0 var(--s-2);
}
p{ font-size: var(--t-body); line-height: var(--lh-body); margin: 0 0 var(--s-3); }
.lead{ font-size: var(--t-lead); line-height: 1.55; }
.pullquote{
  font-size: var(--t-lead);
  color: var(--text);
  margin: 0 0 var(--s-3);
}
.eyebrow{
  font-family: var(--sans);
  font-size: var(--t-label);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 var(--s-2);
}
ul.ticks{ list-style: none; margin: 0 0 var(--s-3); padding: 0; }
ul.ticks li{
  font-size: var(--t-body);
  line-height: 1.5;
  padding: 10px 0 10px 22px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
ul.ticks li::before{
  content: "—";
  position: absolute; left: 0;
  color: var(--muted);
}
hr.rule{ border: 0; border-top: 1px solid var(--border); margin: var(--s-6) 0 0; }

/* Site-wide button. Matches the Contact page treatment exactly: display face,
   accent colour, rule underneath, letter-spacing opens on hover. */
.cta, button.cta{
  display: inline-block;
  margin-top: var(--s-3);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  color: var(--accent);
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.02em;
  padding: 11px 0 9px;
  border-bottom: 1px solid var(--accent);
  transition: opacity .2s ease, letter-spacing .25s ease;
}
.cta:hover, .cta:focus-visible{ letter-spacing: 0.08em; }

/* ---------- Work samples ---------- */
.work-cat{
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  margin: var(--s-6) 0 var(--s-3);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: var(--s-4) var(--s-3);
}
figure{ margin: 0; }
figure img{
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 2px;
}
figcaption{
  margin-top: 10px;
  font-size: var(--t-small);
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- Editorial note (visible TODO, not published copy) ---------- */
.hold{
  border: 1px dashed rgba(255,120,90,0.55);
  background: rgba(255,120,90,0.06);
  color: #ffb4a0;
  padding: var(--s-3);
  margin: var(--s-3) 0;
  font-family: var(--sans);
  font-size: var(--t-small);
  line-height: 1.55;
}
.hold strong{ display: block; margin-bottom: 6px; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }

/* ---------- Footer ---------- */
.site-footer{
  border-top: 1px solid var(--border);
  padding: var(--s-5) var(--pad);
  font-size: var(--t-small);
  color: var(--muted);
}
.site-footer .inner{
  max-width: var(--page);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-5);
  justify-content: space-between;
}
.site-footer nav a{
  color: var(--muted);
  text-decoration: none;
  transition: color .2s ease;
  display: inline-block;        /* lets padding build a 44px tap target */
  padding: 15px 0;
  margin-right: var(--s-3);
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.site-footer nav a:hover, .site-footer nav a:focus-visible{ color: var(--accent); }
/* right-hand footer column: email + social icons */
.footer-right{ display:flex; flex-direction:column; align-items:flex-start; gap:16px; }
.social{ display:flex; align-items:center; gap:18px; list-style:none; margin:0; padding:0; }
.social a{
  display:inline-flex; align-items:center; justify-content:center;
  width:44px; height:44px; margin:-12px;      /* 44px tap target, no visual shift */
  color:#ffffff; opacity:.85; transition:opacity .2s ease, color .2s ease;
}
.social a:hover, .social a:focus-visible{ opacity:1; color:var(--accent); }
.social svg{ display:block; }

:focus-visible{ outline: 2px solid var(--cream); outline-offset: 3px; }

@media (max-width: 640px){
  :root{ --pad: 22px; }
  .site-header .brand img{ height: 30px; }   /* matches the canvas page */
  main{ padding-top: var(--s-5); }
}
@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; }
}
