/* artist-sites.css: the shared look for scientificillustrator.com and alexandramikel.com.
   Taken from gopherpop.com's design study (app/design-study, "Mikel Website Family"):
   fine serif type, black structure, natural color, artwork doing the talking.
   Each site sets its own accent on <body>: Gina pond teal, Ally field lavender.
   Coder (Claude Code, Big Red), October 16, 2026. */

/* Colors: the designer's family.css (Gina's aye, October 16, 2026), names kept as the coder's.
   Class "site-gina" or "site-ally" on <html>. Dark: the visitor's setting, or data-theme="dark" on <html>. */
:root {
  --ink: #171713;
  --ink-soft: #646153;         /* family.css --muted */
  --rule: #171713;
  --black: #000000;            /* footer, category strip, shop callout */
  --on-black: #F6EFDF;
  --on-black-2: #C5BFAF;
  --focus: #155E75;
  --mat: #e6e2d6;              /* behind art cards; art is white paper blended in */
  --edge: #c9c5b9;             /* card borders */
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
}
:root.site-gina {              /* scientificillustrator.com: pond teal */
  --page: #FAF8F3; --paper: #FFFFFF;
  --accent: #A8D5CF; --accent-deep: #155E75; --accent-soft: #E3F1EE;
}
:root.site-ally {              /* alexandramikel.com: field lavender */
  --page: #EFEBE6; --paper: #F7F4F0;
  --accent: #D2C5EC; --accent-deep: #6B4E84; --accent-soft: #EEE8F7;
}
/* Dark mode: GopherPop's Warm Ink; art keeps a light picture mat so white paper never glows */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --ink: #F6EFDF; --ink-soft: #C5BFAF; --rule: #4A473D; --focus: #7FC8D8; --mat: #F7F0DF; --edge: #4A473D; }
  :root.site-gina:not([data-theme="light"]) { --page: #1B1B17; --paper: #22221D; --accent: #7FC8D8; --accent-deep: #9FD8E4; --accent-soft: #1E3530; }
  :root.site-ally:not([data-theme="light"]) { --page: #1B1B17; --paper: #22221D; --accent: #B9A6DE; --accent-deep: #CDBDEA; --accent-soft: #2C2638; }
}
:root[data-theme="dark"] { --ink: #F6EFDF; --ink-soft: #C5BFAF; --rule: #4A473D; --focus: #7FC8D8; --mat: #F7F0DF; --edge: #4A473D; }
:root.site-gina[data-theme="dark"] { --page: #1B1B17; --paper: #22221D; --accent: #7FC8D8; --accent-deep: #9FD8E4; --accent-soft: #1E3530; }
:root.site-ally[data-theme="dark"] { --page: #1B1B17; --paper: #22221D; --accent: #B9A6DE; --accent-deep: #CDBDEA; --accent-soft: #2C2638; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font: 17px/1.6 var(--serif); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:hover { color: var(--accent-deep); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: var(--gutter); top: 8px; background: var(--paper); padding: 8px 12px; z-index: 10; }

/* ---- header ---- */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 106px; padding: 0 var(--gutter); background: var(--page);
  border-bottom: 1px solid var(--rule);
}
.mark { font: clamp(28px, 4vw, 44px)/1 var(--serif); letter-spacing: -.04em; text-decoration: none; display: flex; align-items: center; gap: 12px; }
.mark i { width: 16px; height: 16px; background: var(--accent); flex: none; }
.site-nav { display: flex; align-items: center; gap: 22px; font: 14px var(--sans); }
.site-nav a { text-decoration: none; }
.site-nav .button { margin-left: 8px; }
.button {
  display: inline-block; background: var(--ink); color: var(--page); text-decoration: none;
  font: 600 14px var(--sans); padding: 14px 20px; border: 0;
}
.button:hover { color: var(--page); background: var(--ink-soft); }
.button.caps { font-weight: 400; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; padding: 15px 20px; }

/* ---- hero: copy left, art right ---- */
.hero { display: grid; grid-template-columns: 43% 57%; min-height: 620px; border-bottom: 1px solid var(--rule); }
.hero-copy { padding: 7vw var(--gutter); display: flex; flex-direction: column; justify-content: center; }
.kicker { font: 600 13px/1.5 var(--sans); letter-spacing: .16em; text-transform: uppercase; margin: 0 0 28px; }
.hero h1 { font: normal clamp(46px, 6vw, 88px)/.95 var(--serif); letter-spacing: -.055em; margin: 0 0 30px; }
.hero h1 i { color: var(--accent-deep); }
.hero p { font-size: 19px; line-height: 1.6; max-width: 440px; margin: 0 0 28px; }
.hero-art { position: relative; border-left: 9px solid var(--accent); background: var(--mat); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-art .tag { position: absolute; left: 20px; bottom: 20px; background: var(--accent-soft); color: var(--ink); padding: 9px 14px; font: italic 14px var(--serif); }

/* ---- black category bar ---- */
.category-bar { background: var(--black); color: var(--on-black); padding: 22px var(--gutter); display: flex; flex-wrap: wrap; gap: 8px 26px; font: italic 19px var(--serif); }
.category-bar a { text-decoration: none; }
.category-bar a:hover { color: var(--accent); }

/* ---- sections ---- */
.section { padding: 80px var(--gutter); border-bottom: 1px solid var(--rule); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 36px; }
.section-head h2 { font: normal clamp(34px, 4vw, 56px)/1 var(--serif); letter-spacing: -.04em; margin: 0; }
.section-head .num { font: 600 12px var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.lede { max-width: 680px; font-size: 19px; }

/* numbered collection grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px; }
.card { background: var(--paper); border: 1px solid var(--edge); text-decoration: none; display: block; }
.card .pic { aspect-ratio: 4 / 3; background: var(--mat); overflow: hidden; border-bottom: 1px solid var(--edge); }
.card .pic img { width: 100%; height: 100%; object-fit: cover; }
.card .label { padding: 14px 16px; display: flex; justify-content: space-between; gap: 10px; }
.card .label b { font: normal 22px/1.2 var(--serif); }
.card .label span { font: italic 14px var(--serif); color: var(--ink-soft); }

/* "in print" list */
.print-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.print-list li { display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: start; }
.print-list img { border: 1px solid var(--edge); background: var(--mat); }
.print-list .when { font: 600 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.print-list h3 { font: normal 24px/1.25 var(--serif); margin: 4px 0 6px; }

/* two-column text + aside */
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; }
.note { border-left: 6px solid var(--accent); padding: 4px 0 4px 22px; font-style: italic; }

/* shop callout (links to GopherPop) */
.shop-callout { background: var(--black); color: var(--on-black); padding: 56px var(--gutter); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.shop-callout p { margin: 0; font: normal clamp(26px, 3vw, 40px)/1.15 var(--serif); letter-spacing: -.03em; max-width: 760px; }
.shop-callout .button { background: #f16f52; color: var(--ink); font-weight: 700; }   /* GopherPop persimmon */
.shop-callout .button:hover { background: #ff8a70; color: var(--ink); }

/* ---- footer ---- */
.site-footer { background: var(--black); color: var(--on-black); padding: 48px var(--gutter); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; font: 15px/1.7 var(--sans); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { text-decoration: none; }
.site-footer .fine { color: var(--on-black-2); }
.site-footer a:hover { color: var(--on-black-2); }

/* ---- inner page header ---- */
.page-head { padding: 70px var(--gutter) 40px; border-bottom: 1px solid var(--rule); }
.page-head h1 { font: normal clamp(44px, 6vw, 80px)/.95 var(--serif); letter-spacing: -.05em; margin: 0 0 18px; }

/* art on paper: show the whole piece, never crop it */
img.contain { object-fit: contain !important; padding: 6%; mix-blend-mode: multiply; }
.hero-art img.contain { padding: 4%; }
.print-list.text li { grid-template-columns: 1fr; }
.figure { margin: 0; }
.figure figcaption { font-style: italic; margin-top: 8px; color: var(--ink-soft); }
.page-head .lede { margin: 0; }

/* gallery page: large pieces, one caption each */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 40px 32px; }
.gallery figure { margin: 0; background: var(--paper); border: 1px solid var(--edge); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; padding: 5%; border-bottom: 1px solid var(--edge); background: var(--mat); mix-blend-mode: multiply; }
.gallery figcaption { padding: 14px 16px; display: grid; gap: 2px; }
.gallery figcaption b { font: normal 21px/1.25 var(--serif); }
.gallery figcaption span { font: italic 15px var(--serif); color: var(--ink-soft); }
.category-bar a[aria-current] { color: var(--accent); text-decoration: underline; text-underline-offset: 6px; }

/* ---- phone width ---- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .site-header { min-height: 74px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
  .site-nav { gap: 14px; font-size: 13px; flex-wrap: wrap; }
  .site-nav .button { padding: 10px 14px; margin-left: 0; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }   /* minmax: a large picture can never widen the page past the phone */
  .hero-copy { padding: 28px 16px 36px; }
  .kicker { margin-bottom: 16px; }
  .hero h1 { margin-bottom: 18px; }
  .hero-art { order: -1; border-left: 0; border-bottom: 8px solid var(--accent); height: 58vh; min-height: 300px; max-height: 460px; }   /* art first on phones (Gina, Oct 16) */
  .section { padding: 56px 16px; }
  .section-head { display: block; }
  .two-col { grid-template-columns: 1fr; gap: 28px; }
  .print-list li { grid-template-columns: 84px 1fr; gap: 16px; }
  .category-bar { font-size: 17px; padding: 18px 16px; }
}

/* ---- old pages kept from the earlier site (reskinned October 16, 2026): old HTML inside the new frame ---- */
.old-page { max-width: 920px; margin: 0 auto; padding: 48px var(--gutter) 80px; }
.old-page h1 { font: normal clamp(34px, 4vw, 52px)/1.05 var(--serif); letter-spacing: -.03em; margin: 0 0 8px; }
.old-page h1 a { text-decoration: none; color: var(--accent-deep); }
.old-page h2 { font: normal clamp(26px, 3vw, 36px)/1.15 var(--serif); letter-spacing: -.02em; margin: 6px 0 18px; }
.old-page img { max-width: 100%; height: auto; border: 0; }
.old-page > img, .old-page p > img:only-child { background: var(--mat); padding: 12px; }
.old-page table { width: auto !important; max-width: 100%; border-collapse: collapse; }
.old-page td { padding: 6px 8px; vertical-align: top; }
.old-page font { color: inherit !important; font-family: inherit !important; }
.old-page a { color: var(--accent-deep); }
.old-page hr { border: 0; border-top: 1px solid var(--edge); }
.old-page [bgcolor], .old-page table, .old-page td { background: none !important; }   /* old black cell colors */
.old-page img[width="1"], .old-page img[height="1"] { display: none; }   /* old tracking pixels */
@media (max-width: 760px) {
  .old-page table, .old-page tbody, .old-page tr, .old-page td { display: block; width: 100% !important; }
}
