/* ally.css: alexandramikel.com only (Ally site design, approved by Gina Oct 18, 2026).
   Loaded after shared/artist-sites.css, which stays as it is for scientificillustrator.com.
   Light paper look always: <html data-theme="light"> switches the shared dark rules off. */
:root.site-ally {
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --page: #FBF9F6; --paper: #FFFFFF; --mat: #FFFFFF; --edge: #E3DED6;
  /* Ally teal (brand kit, Oct 18, 2026), set here so shared/artist-sites.css can stay as deployed */
  --accent: #A8D5CF; --accent-deep: #155E75; --accent-soft: #E3F1EE;
}
body { font-size: 19px; }
.mark, .site-nav a, .button { letter-spacing: 0; }
.site-nav { gap: 24px; font-size: 15px; }
.site-nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.site-nav .button { font-size: 14px; }

/* hero: one plain sentence, small line above it with less letter-spacing */
.kicker { font: 600 14px/1.5 var(--sans); letter-spacing: .04em; text-transform: none; margin-bottom: 22px; }
.hero h1 { font: 500 clamp(34px, 4.2vw, 60px)/1.08 var(--serif); letter-spacing: -.01em; margin-bottom: 22px; }
.hero p { font-size: 22px; }
.hero-art { background: var(--page); }
.hero-art img { object-fit: cover; }

.section-head h2, .page-head h1, .statement h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; }
.page-head h1 { font-size: clamp(40px, 5vw, 64px); }
.section-head .more { font: 600 13px var(--sans); letter-spacing: .04em; }
.small-h { font: 500 28px var(--serif); margin: 40px 0 12px; }
.category-bar { font: italic 500 21px var(--serif); }
.category-bar a[aria-current] { color: var(--accent); text-decoration: underline; text-underline-offset: 6px; }

/* gallery: four across, same-size boxes on paper white, a short last row sits centered */
.grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; }
.card { flex: 0 0 calc((100% - 84px) / 4); min-width: 0; border-color: var(--edge); }
.card .pic { aspect-ratio: 4 / 5; background: #fff; border-bottom: 1px solid var(--edge); }
.card .pic img { width: 100%; height: 100%; object-fit: cover; padding: 0; mix-blend-mode: normal; }
/* trimmed drawings: the whole piece fills its frame (no cream box inside a box) */
.card.contain .pic { padding: 5%; }
.card.contain .pic img { object-fit: contain; padding: 0; }
.card .label { flex-direction: column; gap: 2px; padding: 14px 16px 16px; }
.card .label b { font: 600 24px/1.15 var(--serif); }
.card .label span { font: italic 500 17px var(--serif); }
.card:hover .label b { color: var(--accent-deep); }

.two-col { gap: 64px; }
.statement { border-left: 6px solid var(--accent); padding-left: 24px; }
.statement h2 { font-size: 30px; margin: 0 0 12px; }
.fine { font: 14px var(--sans); color: var(--ink-soft); }
.socials { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.socials a { display: inline-block; border: 1px solid var(--ink); padding: 11px 18px; font: 600 14px var(--sans); text-decoration: none; }
.socials a:hover { background: var(--ink); color: var(--page); }

/* click to enlarge */
.lb { position: fixed; inset: 0; z-index: 50; background: rgba(251,249,246,.97); display: none; flex-direction: column; align-items: center; justify-content: center; padding: 56px 64px 24px; }
.lb.open { display: flex; }
.lb img { max-width: 100%; max-height: calc(100vh - 150px); width: auto; height: auto; object-fit: contain; background: #fff; box-shadow: 0 2px 24px rgba(0,0,0,.15); }
.lb .cap { margin-top: 14px; text-align: center; font: 600 22px var(--serif); }
.lb .cap span { display: block; font: italic 500 17px var(--serif); color: var(--ink-soft); }
.lb button { position: absolute; background: var(--ink); color: var(--page); border: 0; cursor: pointer; font: 600 26px/1 var(--sans); width: 48px; height: 48px; }
.lb .x { top: 10px; right: 12px; }
.lb .prev { left: 10px; top: 50%; margin-top: -24px; }
.lb .next { right: 10px; top: 50%; margin-top: -24px; }
.lb button:hover { background: var(--accent-deep); }

@media (max-width: 1000px) { .card { flex-basis: calc((100% - 28px) / 2); } }
@media (max-width: 760px) {
  body { font-size: 18px; }
  .grid { gap: 14px; }
  .card { flex-basis: calc((100% - 14px) / 2); }
  .card .label { padding: 10px 10px 12px; }
  .card .label b { font-size: 19px; }
  .card .label span { font-size: 15px; }
  .hero h1 { font-size: 34px; }
  .hero p { font-size: 19px; }
  .site-nav { gap: 6px 16px; font-size: 14px; }
  .page-head { padding: 40px 16px 28px; }
  .lb { padding: 56px 12px 16px; }
  .lb .prev, .lb .next { top: auto; bottom: 14px; margin: 0; }
  .lb .prev { left: 12px; } .lb .next { right: 12px; }
  .lb .cap { margin-bottom: 52px; }
}

/* site search (Oct 21, 2026) */
.site-search{display:inline-flex;gap:6px;align-items:center;margin-left:16px}
.site-search input[type=search]{font:inherit;font-size:14px;padding:6px 10px;border:1px solid currentColor;background:transparent;color:inherit;border-radius:4px;width:130px}
.site-search button{font:inherit;font-size:13px;padding:6px 10px;border:1px solid currentColor;background:transparent;color:inherit;border-radius:4px;cursor:pointer}
@media(max-width:640px){.site-search{margin:10px 0 0;width:100%}.site-search input[type=search]{flex:1}}
