/* =====================================================================
   Shared look for every public page: one page opener, one heading face,
   two buttons and a text link. Loaded after each page's own styles.
   ===================================================================== */
:root{
  --wine: #8a4b4b;
  --ink-strong: #1d1a17;
  --paper: #F6F3EE;
  --display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --label: Jost, 'Helvetica Neue', Arial, sans-serif;
}

/* ---------- page opener: small label, wine title, italic line ---------- */
.opener{ text-align: center; max-width: 900px; margin: 0 auto; padding: 72px var(--pad, 24px) 48px; }
.opener-k{ font: 14px/1 var(--label); letter-spacing: .2em; text-transform: uppercase; color: var(--soft, #6b655c); }
.opener-t{ font-family: var(--display); font-weight: 400; font-size: clamp(44px, 6.4vw, 80px); line-height: 1.08; color: var(--wine); margin: 20px 0 0; text-wrap: balance; letter-spacing: 0; text-transform: none; }
.opener-d{ font-family: var(--display); font-style: italic; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.35; color: #3b3530; margin: 16px auto 0; max-width: 36em; text-wrap: balance; }
@media (max-width: 760px){ .opener{ padding: 44px var(--pad, 20px) 30px; } }

/* Commissions + the commission example already have label / title / line: same treatment */
.cm-hero .kicker, .story-head .kicker{ font: 14px/1 var(--label); letter-spacing: .2em; text-transform: uppercase; color: var(--soft, #6b655c); opacity: 1; }
.cm-hero h1, .story-head h1{ font-family: var(--display) !important; font-weight: 400 !important; font-size: clamp(44px, 6.4vw, 80px) !important; line-height: 1.08 !important; color: var(--wine) !important; letter-spacing: 0 !important; text-wrap: balance; }
.cm-hero .stand, .story-head .stand{ font-family: var(--display) !important; font-style: italic; font-size: clamp(20px, 2.2vw, 26px) !important; line-height: 1.35 !important; color: #3b3530 !important; }
.story-head{ text-align: center; }
.story-head .stand{ margin-left: auto; margin-right: auto; }

/* collection pages (not the private gallery page) */
html:not(.clean) .gal-head{ padding-top: 72px; padding-bottom: 28px; }
html:not(.clean) .gal-head h1{ font-family: var(--display); font-weight: 400; font-size: clamp(44px, 6.4vw, 80px); line-height: 1.08; color: var(--wine); text-transform: none; letter-spacing: 0; margin: 20px 0 0; }
html:not(.clean) .gal-head .kicker{ font: 14px/1 var(--label); letter-spacing: .2em; text-transform: uppercase; color: var(--soft, #6b655c); opacity: 1; margin: 0; }

/* section headings in the reading pages use the same display face */
.cm-close h2, .cm-close .big, .story h2, .bk-quote, .incl .item h3, .step h3{ font-family: var(--display) !important; font-weight: 400 !important; }
.step h3, .incl .item h3{ font-size: 24px !important; line-height: 1.2 !important; color: var(--ink-strong); }
.story h2{ font-size: clamp(28px, 3.2vw, 36px) !important; color: var(--wine); text-transform: none !important; letter-spacing: 0 !important; }

/* ---------- buttons: square corners, like the frames around the paintings ---------- */
.btn-solid, .btn-line, .bk-cta, .send, .hw-end a, .lr-cta, .story .cta > a, .cta > a{
  display: inline-block; padding: 15px 30px; border-radius: 4px !important;
  font: 600 14px/1 var(--label) !important; letter-spacing: .16em !important; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease;
}
/* main action: filled ink */
.btn-solid, .send, .bk-cta, .hw-end a, .lr-cta, .cta > a{
  background: var(--ink-strong) !important; color: var(--paper) !important; border: 1px solid var(--ink-strong) !important;
}
.btn-solid:hover, .send:hover, .bk-cta:hover, .hw-end a:hover, .lr-cta:hover, .cta > a:hover{
  background: var(--wine) !important; border-color: var(--wine) !important; color: #fff !important;
}
/* second action: outline */
.btn-line{ background: transparent !important; color: var(--ink-strong) !important; border: 1px solid var(--ink-strong) !important; }
.btn-line:hover{ background: var(--ink-strong) !important; color: var(--paper) !important; }
/* inline action: wine text link */
.btn-text{ font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif; font-style: italic; color: var(--wine); text-decoration: underline; text-underline-offset: 4px; }
.btn-text:hover{ color: var(--ink-strong); }
.send:disabled{ opacity: .55; cursor: default; }

:focus-visible{ outline: 2px solid var(--wine); outline-offset: 3px; }
.drop a.current{ font-weight: 700; }
.opener + .bk-hero{ padding-top: 24px; }
.opener + .shell{ padding-top: 8px; margin-top: 0; }
.bio-page .opener + .bio-hero{ margin-top: 0; }

/* =====================================================================
   Phones and tablets (touch screens)
   - text stays the size we set when the phone is turned sideways
   - form fields are 16px so iPhone doesn't zoom in when you tap them
   - small links get a finger-sized (44px) tap area; on desktop nothing changes
   ===================================================================== */
html{ -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
a, button{ -webkit-tap-highlight-color: rgba(138, 75, 75, .12); }
@media (pointer: coarse){
  input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input:not([type]), select, textarea{ font-size: 16px !important; }
  .field input[type="text"], .field input[type="email"], .field select{ min-height: 44px; }

  /* footer: links spaced a finger apart */
  .rh-foot a{ display: inline-block; padding: 7px 0 !important; }
  .rh-foot .col b{ margin-bottom: 4px; }

  /* single links in running text: a bigger invisible tap area, same look */
  body .header .brand, .gal .site, .rail .v a, .work-price-link{ position: relative; }
  body .header .brand::before, .gal .site::before, .rail .v a::before, .work-price-link::before{
    content: ''; position: absolute; left: -6px; right: -6px; top: 50%; height: 44px; transform: translateY(-50%);
  }

  /* collection switcher, chapter list, story list */
  .gal-switch a, .gal-arch-btn{ padding-top: 11px !important; padding-bottom: 11px !important; }
  .bio-rail nav{ row-gap: 0 !important; }
  .bio-rail nav a{ display: inline-block; padding: 13px 0; }
  .story-rail a{ padding-top: 12px !important; padding-bottom: 12px !important; }
}

/* =====================================================================
   ROBERT HAGAN DESIGN SYSTEM · v1 (November 2026)
   The rules every page follows. Full guide: /styleguide.html and STYLEGUIDE.md
   New pages: use these tokens and classes; don't invent new sizes or colours.
   ===================================================================== */
:root{
  /* colour */
  --c-paper: #F6F3EE;   /* page background */
  --c-sand:  #EDE7DD;   /* alternate sections, image placeholders */
  --c-card:  #FBF9F6;   /* cards and panels */
  --c-ink:   #1D1B18;   /* headings, buttons, dark bands */
  --c-text:  #3B3530;   /* reading text */
  --c-soft:  #6B6259;   /* captions, helper text */
  --c-line:  #D6CEC2;   /* rules and borders */
  --c-wine:  #8A4B4B;   /* labels, links, active states: never headings */
  /* type */
  --f-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --f-read:    'Source Serif 4', Georgia, 'Times New Roman', serif;
  --f-ui:      Jost, 'Helvetica Neue', Arial, sans-serif;
  --t-title:   clamp(44px, 6vw, 76px);   /* page title, one per page */
  --t-section: clamp(34px, 4vw, 52px);   /* section heading */
  --t-card:    clamp(26px, 2.6vw, 32px); /* card / step heading */
  --t-read:    19px;                     /* all reading text */
  --t-small:   16px;                     /* captions, notes, form help */
  --t-label:   14px;                     /* small caps labels and buttons */
  --lh-read:   1.7;
  --w-read:    640px;                    /* reading column */
  --w-page:    1200px;                   /* widest content */
  /* space (8-point steps) */
  --s-1: 8px; --s-2: 16px; --s-3: 24px; --s-4: 32px; --s-6: 48px; --s-8: 64px; --s-12: 96px;
  --radius: 4px;
  /* control height: every button and field */
  --h-control: 48px;
}
@media (max-width: 760px){ :root{ --t-read: 18px; } }

/* ---------- reading text: 19px everywhere (18px on phones) ---------- */
.story > p, .bk-lede p, .bk-story > p, .hw-col > p, .hw-note > p, .lr-text > p, .lr-cont > p,
.bio-page section > p, .bio-page .bio-close, .cx-intro > p, .cx-step-text > p, .cx-close > p{
  font-family: var(--f-read) !important; font-size: var(--t-read) !important; line-height: var(--lh-read) !important; color: var(--c-text);
}

/* ---------- headings: ink. Wine is only for the small label above ---------- */
.opener-t, html:not(.clean) .gal-head h1, .cm-hero h1, .story-head h1, .hw-head h1, .st-head h1, .bk-hero h1{
  color: var(--c-ink) !important; font-size: var(--t-title) !important;
}
.story h2, .hw-part h2, .hw h2, .galleries .head h2, .bk-story h2, .hw-title{ color: var(--c-ink) !important; }
.opener-k, .bk-kicker, .story-head .kicker, .cm-hero .kicker, html:not(.clean) .gal-head .kicker, .rh-label{
  font: 600 var(--t-label)/1 var(--f-ui) !important; letter-spacing: .2em !important; text-transform: uppercase; color: var(--c-wine) !important;
}

/* ---------- buttons: three kinds, all 48px tall ---------- */
.btn-solid, .btn-line, .bk-cta, .send, .hw-end a, .lr-cta, .story .cta > a, .cta > a, .cx-btn, .bio-cta a, .btn-light{
  display: inline-flex !important; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h-control); padding: 0 28px !important; border-radius: var(--radius) !important;
  font: 600 var(--t-label)/1 var(--f-ui) !important; letter-spacing: .16em !important; text-transform: uppercase !important;
  text-decoration: none; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease;
}
/* 1 · primary: filled ink. One per screen. */
.btn-solid, .send, .bk-cta, .hw-end a, .lr-cta, .cta > a, .cx-btn{
  background: var(--c-ink) !important; color: var(--c-paper) !important; border: 1px solid var(--c-ink) !important;
}
.btn-solid:hover, .send:hover, .bk-cta:hover, .hw-end a:hover, .lr-cta:hover, .cta > a:hover, .cx-btn:hover{
  background: var(--c-wine) !important; border-color: var(--c-wine) !important; color: #fff !important;
}
/* 1b · primary on a dark band: filled paper */
.btn-light, .cx-btn.cx-btn-light{ background: var(--c-paper) !important; color: var(--c-ink) !important; border: 1px solid var(--c-paper) !important; }
.btn-light:hover, .cx-btn.cx-btn-light:hover{ background: #fff !important; color: var(--c-ink) !important; border-color: #fff !important; }
/* 2 · secondary: outline */
.btn-line, .bio-cta a{ background: transparent !important; color: var(--c-ink) !important; border: 1px solid var(--c-ink) !important; }
.btn-line:hover, .bio-cta a:hover{ background: var(--c-ink) !important; color: var(--c-paper) !important; }
/* 3 · text link with arrow: inside cards and paragraphs */
.link-arrow{ font: 600 15px/1.3 var(--f-ui); letter-spacing: .04em; color: var(--c-wine); text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 3px; }
.link-arrow:hover{ color: var(--c-ink); }

/* ---------- images: paintings vs photos ---------- */
.img-art{ display: block; max-width: 100%; height: auto; border-radius: 0; box-shadow: 0 1px 2px rgba(29,27,24,.08), 0 18px 36px -18px rgba(29,27,24,.35); object-fit: contain; }
.img-photo{ display: block; max-width: 100%; height: auto; border-radius: var(--radius); box-shadow: none; object-fit: cover; }
.img-fade{ opacity: 0; transition: opacity .5s ease; }
.img-fade.is-in{ opacity: 1; }
@media (prefers-reduced-motion: reduce){ .img-fade{ opacity: 1; transition: none; } }

/* ---------- cards ---------- */
.ds-card{ background: var(--c-card); border: 1px solid var(--c-line); border-radius: 8px; padding: var(--s-3); }
.cx-btn{ height: var(--h-control) !important; }
.rail > p, aside.rail p{ font-size: var(--t-small) !important; line-height: 1.6 !important; }

/* ---------- About: magazine read (design system v1) ---------- */
.bio-page .bio-shell{ grid-template-columns: 220px minmax(0, var(--w-read)); justify-content: center; gap: 80px; }
.bio-page .bio-body section{ margin-bottom: var(--s-8, 64px); }
.bio-page .bio-body h2{
  font: 400 var(--t-section)/1.1 var(--f-display) !important; letter-spacing: 0 !important; text-transform: none !important;
  color: var(--c-ink) !important; border: 0 !important; padding: 0 !important; margin: 0 0 var(--s-3, 24px) !important;
}
.bio-page .bio-body p{ max-width: none; }
.bio-page .bio-quote{
  font: italic 400 clamp(28px, 3vw, 36px)/1.25 var(--f-display) !important; color: var(--c-ink);
  border: 0 !important; border-top: 1px solid var(--c-line) !important; border-bottom: 1px solid var(--c-line) !important;
  padding: var(--s-4, 32px) 0 !important; margin: var(--s-6, 48px) 0 !important; max-width: none; text-align: center;
}
.bio-page .bio-rail nav{ gap: 12px; border-left-color: var(--c-line); }
.bio-page .bio-rail nav a{ font: 400 16px/1.3 var(--f-ui); letter-spacing: 0; color: var(--c-text); opacity: 1;
  margin-left: -15px; padding-left: 13px; border-left: 2px solid transparent; transition: color .2s, border-color .2s; }
.bio-page .bio-rail nav a:hover{ color: var(--c-ink); font-weight: 400; }
.bio-page .bio-rail nav a.active{ color: var(--c-wine); border-left-color: var(--c-wine); font-weight: 500; }
@media (max-width: 900px){
  .bio-page .bio-shell{ grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .bio-page .bio-rail nav a{ margin-left: 0; padding-left: 0; border-left: 0; }
  .bio-page .bio-rail nav a.active{ border-bottom: 2px solid var(--c-wine); }
}
@media (max-width: 760px){ .bio-page .bio-body h2{ font-size: 34px !important; } }
