/* Flower Type's early-web gallery. Keep the vivid palette and plain document character. */
:root {
  --bg: #000; --paper: #000; --ink: #3ffc00; --muted: #a6dc8f;
  --line: #555; --soft-line: #333; --signal: #fc3f00;
  --mono: "Courier New", Courier, monospace;
  --display: "Times New Roman", Times, serif;
  --page-pad: 16px; --section-space: 42px;
}
html { background: #000; scroll-behavior: auto; }
body { background: #000; color: var(--ink); font: 18px/1.45 var(--display); text-rendering: auto; }
#mainContent { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
#mainContent :is(p,h1,h2,h3) { letter-spacing: normal; }
a,.nav-links a,.wordmark { color: var(--signal); text-decoration: underline; text-underline-offset: 3px; }
a:visited { color: #ff754d; }
a:hover,a:active { color: #fff; }
:focus-visible { outline: 2px dotted #fff; outline-offset: 4px; }
::selection { background: var(--ink); color: #000; }
hr { height: 2px; border: 0; border-top: 1px solid #777; border-bottom: 1px solid #333; margin: 20px 0; }
.retro-skip { position: absolute; top: 4px; left: 8px; transform: translateY(-150%); background: #000; padding: 8px; z-index: 100; }
.retro-skip:focus { transform: none; }
.retro-masthead { text-align: center; padding-top: 20px; }
.retro-masthead h1 { font: bold 42px/1.1 var(--display); margin: 8px 0; }
.retro-masthead p { margin: 9px 0; }
.retro-flower { width: max-content; text-align: left; font: bold 6px/1.05 var(--mono); background: none; color: var(--ink); padding: 0; border: 0; margin: 18px auto; white-space: pre; overflow: visible; }
.retro-welcome { font-style: italic; }
.generator-heading { text-align: center; }
.generator-heading h2,.collection-heading h2 { margin: 0; color: var(--ink); font: bold 32px/1.1 var(--display); }
.generator-heading p,.collection-heading p { margin: 8px 0 0; }
.generator-heading { margin-bottom: 18px; }
.collection-section { padding: 40px 0; border-top: 2px groove #777; }
.collection-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 28px; margin-bottom: 24px; }
.collection-heading .collection-kicker { margin: 0 0 9px; color: var(--muted); font: 12px/1.4 var(--mono); text-transform: uppercase; }
.collection-register { font: 13px/1.5 var(--mono); }
.collection-register p:first-child { margin-top: 0; }
.collection-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; padding: 0; margin: 0; list-style: none; }
@media (min-width: 520px) {
  .collection-grid { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); }
}
.collection-work { display: block; font: 13px/1.4 var(--mono); }
.collection-plate { display: grid; aspect-ratio: 1950 / 2733; place-items: center; border: 1px solid var(--line); background: #161613; color: var(--muted); }
.collection-plate > * { grid-area: 1 / 1; }
.collection-plate img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.collection-plate img[hidden] { display: none; }
.collection-plate span { padding: 8px; text-align: center; }
.collection-caption { display: flex; justify-content: space-between; gap: 6px; margin-top: 7px; }
body:has(.collection-viewer[open]) { overflow: hidden; }
.collection-viewer {
  --artwork-ratio: 1972 / 2765;
  --viewer-chrome: 120px;
  box-sizing: border-box;
  width: min(calc(100% - 24px), max(260px, calc((100dvh - 24px - var(--viewer-chrome)) * (var(--artwork-ratio)) + 2px)));
  max-height: calc(100dvh - 24px);
  overflow: auto;
  padding: 0;
  border: 1px solid var(--line);
  background: #000;
  color: var(--ink);
}
.collection-viewer::backdrop { background: rgba(0, 0, 0, .86); }
.collection-viewer-bar,.collection-viewer-credit { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 8px 14px; }
.collection-viewer-bar { border-bottom: 1px solid var(--line); }
.collection-viewer-bar h3 { margin: 0; font: bold 22px/1.2 var(--display); }
.collection-viewer-bar button { min-height: 44px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 0; background: #000; color: var(--ink); box-shadow: none; font: 13px/1.4 var(--mono); }
.collection-viewer-bar button:hover { color: #fff; border-color: #fff; }
.collection-viewer-art { aspect-ratio: var(--artwork-ratio); background: #161613; }
.collection-viewer-art iframe { display: block; width: 100%; height: 100%; border: 0; }
.collection-viewer-credit { border-top: 1px solid var(--line); color: var(--muted); font: 12px/1.4 var(--mono); }
.site-nav { position: static; min-height: 0; padding: 12px 0 16px; display: block; text-align: center; background: none; border-bottom: 2px groove #777; font: 17px/1.8 var(--display); }
.wordmark { display: block; font-weight: bold; color: var(--ink); text-decoration: none; }
.site-nav .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 2px 15px; font-size: 17px; }
.site-nav .nav-links a,.site-nav .nav-links a:first-child,.site-nav .nav-links a:nth-child(2) { display: inline-block; min-height: 44px; padding: 8px 0; box-sizing: border-box; border: 0; }
.nav-links a::before { content: "[ "; color: var(--ink); }
.nav-links a::after { content: " ]"; color: var(--ink); }
section[id] { scroll-margin-top: 20px; }
.work-section { --artwork-width: min(440px, 52vw); --presentation-width: 880px; --artwork-matte: 0px; min-height: 0; padding: 32px 0 28px; overflow: visible; background: none; }
/* Equal side tracks keep the artwork itself on the page centerline. */
.work-section .art-card,
html[data-view="gallery"] .work-section .art-card { min-height: 0; width: 100%; grid-template-columns: minmax(0,1fr) var(--artwork-width) minmax(0,1fr); gap: 20px 45px; background: none; }
.work-section .art-card-heading { padding: 8px 0; align-content: start; gap: 14px; }
.art-card-heading::before { content: none; }
.art-card-heading h2 { font: bold 32px/1.1 var(--display); margin: 0 0 6px; }
.art-card-heading > p { font: 18px/1.45 var(--display); max-width: none; color: var(--ink); }
.art-card-heading .metadata-label { font: bold 16px/1.4 var(--display); color: var(--ink); }
.art-card-heading .metadata-value { font: 15px/1.5 var(--mono); color: var(--ink); }
.metadata-value > span + span { color: var(--muted); }
.art-card-metadata { border-top: 1px solid var(--line); margin-top: 6px; }
.metadata-entry { display: block; padding: 10px 0; }
.metadata-entry p { margin: 0; }
.work-section .render-surface,
html[data-view="gallery"] .work-section .render-surface { grid-column: 2; border: 12px solid #e5ddd1; border-image: url("./assets/frame/white-mahogany.png") 12.5% / 12px / 0 stretch; padding: 0; box-shadow: 0 2px 8px #0008; margin: 0; background: none; }
.render-surface::after { display: none; }
.art-card-controls { border-top: 1px solid var(--line); }
.art-card-controls #randomizeSeeds { font: 17px var(--display); text-decoration: underline; color: var(--signal); min-height: 44px; }
.art-card-controls #randomizeSeeds:hover { padding-left: 0; color: #fff; }
.art-card-controls #randomizeSeeds::after { content: "→"; }
.art-card-controls .gallery-shortcuts button { color: var(--ink); font-size: 11px; }
.art-card-controls .gallery-shortcuts kbd { background: #000; color: var(--ink); border: 1px solid var(--line); }
.art-card-controls .zoom-hint { color: var(--muted); }
.specimen-details { max-width: 880px; margin: 20px auto 0; border-color: var(--line); }
.specimen-details summary,.version-note summary { font: 18px/1.5 var(--display); color: var(--signal); text-decoration: underline; text-underline-offset: 3px; }
.details-traits,.details-traits dd,.details-traits dt { color: var(--ink); }
.statement-section,.growth-section,.ownership-study,.body-section,.atlas-section { max-width: none; padding: 40px 0; margin: 0; border-top: 2px groove #777; background: none; }
.statement-section { display: block; }
.statement-section h2,.growth-copy h2,.ownership-study h2,.body-copy h2,.atlas-heading h2 { text-align: center; margin: 0 0 24px; font: bold 32px/1.1 var(--display); color: var(--ink); }
.statement-section .art-description { max-width: 78ch; margin: 0 auto; }
.art-description p,.growth-description,.ownership-description,.canon-intro,.version-copy p,.atlas-heading p { color: var(--ink); font: 18px/1.55 var(--display); max-width: none; }
.art-description p { margin: 0 0 16px; }
.system-register { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px 42px; margin-top: 24px; padding: 16px 0 0; border-top: 1px solid var(--line); }
.system-register div { display: block; padding: 0; border: 0; }
.system-register dt { font: bold 17px var(--display); color: var(--ink); }
.system-register dd { margin: 5px 0; font: 14px var(--mono); color: var(--muted); }
.growth-section { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 38px; }
.growth-copy h2 { text-align: left; }
.growth-hint,.ownership-note,.selection-date { font: 15px/1.5 var(--display); color: var(--muted); }
.growth-study { max-width: 100%; width: 100%; margin: 0; }
.growth-study video { border: 1px solid var(--line); padding: 0; width: 100%; height: auto; }
.growth-study figcaption { font: 14px/1.4 var(--mono); color: var(--ink); }
.growth-study figcaption button { color: var(--signal); }
.ownership-pair { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 14px; }
.ownership-pair figure { min-width: 0; margin: 0; }
.ownership-pair img { border: 1px solid var(--line); width: 100%; height: auto; }
.ownership-pair figcaption { font: 15px/1.4 var(--display); color: var(--ink); text-align: center; padding-top: 8px; }
.body-copy { display: block; margin-bottom: 24px; }
.selection-date { text-align: center; }
.canon-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 36px 25px; }
.canon-work { padding: 0; margin: 0; min-width: 0; }
.canon-work img { border: 1px solid var(--line); padding: 0; width: 100%; height: auto; }
.canon-work figcaption { font: bold 19px/1.4 var(--display); color: var(--ink); padding: 10px 0 0; }
.canon-work figcaption span { font: 12px var(--mono); color: var(--muted); }
.sequence-note { font: 17px/1.45 var(--display); color: var(--ink); margin: 8px 0; }
.preserved-link { color: var(--signal); font: 15px/1.4 var(--display); }
.version-note { border-color: var(--line); padding-top: 20px; margin-top: 28px; }
.atlas-heading { align-items: start; }
.atlas-heading h2 { text-align: left; }
.atlas-search { color: var(--ink); font: 16px/1.4 var(--display); }
.atlas-search input { background: #fff; color: #000; border: 2px inset #aaa; font: 16px var(--display); padding: 8px; }
.atlas-filters button { color: var(--signal); font: 16px/1.3 var(--display); text-decoration: underline; white-space: normal; }
.atlas-filters button[aria-pressed="true"] { color: var(--ink); }
.atlas-status,.atlas-family-kind { color: var(--muted); }
.atlas-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 30px 22px; }
.atlas-family header { display: block; }
.atlas-family h3 { color: var(--ink); font: bold 19px var(--display); }
.atlas-family-kind { font: 12px var(--mono); }
.atlas-specimen { border: 1px solid var(--line); }
.atlas-specimen:hover { transform: none; border-color: var(--signal); }
.site-footer { display: block; padding: 28px 0 36px; border-top: 2px groove #777; font: 16px/1.5 var(--display); color: var(--ink); }
.site-footer p,.site-footer .footer-credit,.footer-credit span { color: var(--ink); font: inherit; }
.site-footer .footer-credit { display: block; }
.footer-credit span { display: block; margin-top: 3px; }
.footer-links { display: flex; gap: 24px; margin-top: 16px; font: inherit; }
.retro-tribute { max-width: 76ch; }
@media (max-width:900px) {
  .work-section { --artwork-width: min(100%,420px); --presentation-width: 100%; }
  .work-section .art-card,
  html[data-view="gallery"] .work-section .art-card { display: flex; flex-direction: column; gap: 14px; width: 100%; min-height: 0; }
  .work-section .art-card-heading { order: 0; width: 100%; }
  .work-section .render-surface,
  html[data-view="gallery"] .work-section .render-surface { order: 1; width: min(100%,420px); align-self: center; }
  .art-card-controls { order: 2; width: min(100%,420px); align-self: center; }
}
@media (max-width:700px) {
  #mainContent { width: calc(100% - 24px); }
  body { font-size: 17px; }
  .retro-masthead h1 { font-size: 36px; }
  .retro-flower { font-size: 5.5px; }
  .work-section { --artwork-width: min(100%,420px); --presentation-width: 100%; padding-top: 24px; }
  .work-section .art-card { display: flex; flex-direction: column; gap: 14px; width: 100%; min-height: 0; }
  .work-section .art-card-heading { display: block; order: 0; width: 100%; padding: 0; }
  .art-card-heading h2 { text-align: center; font-size: 28px; }
  .art-card-heading > p { text-align: center; }
  .art-card-metadata { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .metadata-entry:last-child { grid-column: 1 / -1; padding-top: 0; }
  .metadata-entry { padding: 8px 0; }
  .metadata-value > span { display: inline; }
  .metadata-value > span + span::before { content: " · "; }
  .art-card-heading .atlas-preview-status:empty { display: none; }
  .work-section .render-surface { order: 1; width: min(100%,420px); align-self: center; }
  .art-card-controls { order: 2; width: min(100%,420px); align-self: center; }
  .growth-section { grid-template-columns: 1fr; gap: 18px; }
  .growth-copy h2 { text-align: center; }
  .growth-study { max-width: 320px; margin: auto; }
  .ownership-pair { gap: 4px; }
  .ownership-pair figcaption { font-size: 12px; }
  .canon-grid,.atlas-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 26px 14px; }
  .canon-work figcaption,.atlas-family h3 { font-size: 17px; }
  .sequence-note { font-size: 16px; }
  .atlas-heading { display: block; }
  .atlas-search { margin-top: 16px; }
  .atlas-filters { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .atlas-filters button { font-size: 15px; }
  .footer-links { flex-wrap: wrap; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior: auto !important; } }
