@charset "UTF-8";

:root {
  --paper: #fbf8ef;
  --ink: #1b382e;
  --text: #293d33;
  --muted: #59665c;
  --red: #943d2d;
  --rule: #cecbb9;
  --soft: #ecebdf;
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", Georgia, serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  --latin: "Baskerville", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}
* { box-sizing: border-box }
body { margin: 0; min-height: 100vh; color: var(--text); background: var(--paper); font: 16px/1.65 var(--sans); }
[hidden] { display: none !important }
button, input { font: inherit; color: inherit }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation }
button { cursor: pointer }
a { color: inherit }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible { outline: 2px solid #096347; outline-offset: 3px }
h1:focus { outline: none }
h1, h2, h3, figure, dl, p, ol, ul { margin: 0 }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); text-wrap: pretty }
svg { width: 1.15em; height: 1.15em; flex: none; vertical-align: middle }
.page { max-width: 1144px; padding: 0 clamp(20px, 5vw, 72px) 65px; margin: auto }
.masthead { height: 68px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1.5px solid var(--ink) }
.brand, .back, .location, .entry-location, .read-care, .quick-care, .care-kicker, .search { display: inline-flex; align-items: center }
.brand { gap: 9px; font: 700 20px/1 var(--serif); color: var(--ink); letter-spacing: .035em }
.brand > span { display: grid; place-items: center }
.brand svg { width: 30px; height: 30px }
.cover { position: relative; isolation: isolate; background: var(--paper); overflow: hidden; min-height: 175px; display: flex; align-items: center; border-bottom: 1px solid var(--rule) }
.cover-copy { position: relative; z-index: 1; padding: 24px 0 }
.cover-copy::before { content: ""; display: block; width: 33px; height: 3px; background: var(--red); margin-bottom: 13px }
.cover h1, .entry-head h1 { font-size: clamp(45px, 5.3vw, 74px); line-height: 1.12; letter-spacing: .025em; font-weight: 700 }
.cover p { margin-top: 11px; font-size: 13px; letter-spacing: .075em; color: var(--muted) }
.cover-art { position: absolute; z-index: 0; width: 62%; height: 100%; right: 0; bottom: 0; background: url('images/cover-v2.webp') right center / contain no-repeat; mix-blend-mode: multiply }
.tools { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 20px 0 16px; border-bottom: 1px solid #aaa994 }
.search { gap: 10px; height: 44px; padding: 0 13px; min-width: 0; max-width: 370px; width: 40%; border: 1px solid #c0c2ae; border-radius: 6px; background: #fffdf6; color: var(--muted) }
.search svg { width: 20px; height: 20px }
.search input { all: unset; min-width: 0; width: 100%; font: 16px var(--sans); color: var(--ink) }
.search input::placeholder { color: #647064 }
.search:focus-within { outline: 2px solid #33634c; outline-offset: 1px }
.areas { display: flex; gap: 5px; flex-wrap: wrap }
.areas button, .plain-button { min-height: 42px; padding: 0 15px; border: 1px solid transparent; background: transparent; border-radius: 5px; font-size: 14px; color: var(--muted) }
.areas [aria-pressed=true] { color: #fffdf7; background: var(--ink) }
.areas button:hover:not([aria-pressed=true]), .plain-button:hover { background: var(--soft); color: var(--ink) }
.cards { border-bottom: 1px solid var(--ink) }
.cards:empty { display: none }
.plant-card { position: relative; display: grid; grid-template-columns: 134px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 16px 8px 16px 0; color: inherit; text-decoration: none }
.plant-card + .plant-card { border-top: 1px solid var(--rule) }
.plant-card:hover { background: #f3f1e6 }
.thumbnail { height: 112px; overflow: hidden; border-radius: 4px; background: var(--soft) }
.thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover }
.card-copy { min-width: 0 }
.card-copy h2 { font-size: 30px; line-height: 1.25; letter-spacing: .035em }
.location, .entry-location { color: var(--muted); font-size: 12px; line-height: 1.4; gap: 4px }
.location { margin-bottom: 4px }
.latin, .taxon-latin, .entry-latin { font-family: var(--latin) }
.latin { display: block; font-size: 16px; line-height: 1.3; color: #526055 }
.quick-care { gap: 7px; color: #24553f; font-size: 17px; font-weight: 650; line-height: 1.4; margin-top: 7px }
.quick-care svg { width: 17px; height: 17px }
.read-care { color: var(--muted); font-size: 13px; gap: 7px }
.read-care svg { width: 12px; height: 12px }
.empty { padding: 40px 10px; text-align: center; border-bottom: 1px solid var(--rule) }
.empty-icon { font-size: 28px; color: var(--muted) }
.empty h2 { font-size: 23px; margin-top: 7px }
.empty p { color: var(--muted); margin: 6px 0 13px }
.plain-button { border-color: var(--rule); color: var(--ink) }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap }

.back { font-size: 14px; gap: 5px; min-height: 44px; text-decoration: none; color: var(--ink) }
.back:hover, .sources a:hover { color: var(--red) }
.detail-mast .brand { font-size: 17px }
.detail-mast .brand svg { width: 24px; height: 24px }
.entry-head { display: flex; justify-content: space-between; align-items: end; gap: 14px; padding: 26px 0 22px; border-bottom: 1px solid #9fa899 }
.entry-latin { font-size: clamp(20px, 2.45vw, 29px); line-height: 1.25; margin-top: 6px; color: #445747 }
.entry-location { margin-bottom: 4px; padding: 2px 0 2px 9px; color: var(--red); border-left: 2px solid #aa5842; font-size: 14px; white-space: nowrap }
.entry-location svg { display: none }
.spread { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr); align-items: start; gap: clamp(28px, 4vw, 58px); margin-top: 28px }
.spread h2 { font-size: clamp(23px, 2.4vw, 30px); line-height: 1.45; letter-spacing: .015em }
.intro { font-size: 15px; line-height: 1.7; margin: 4px 0 12px; color: var(--muted) }
.view-switch { display: flex; gap: 22px; border-bottom: 1px solid var(--rule); margin-bottom: 12px }
.view-switch button { background: transparent; padding: 0 2px; min-height: 44px; border: 0; border-bottom: 3px solid transparent; font-weight: 600; font-size: 15px; color: var(--muted) }
.view-switch [aria-pressed=true] { color: var(--red); border-bottom-color: var(--red) }
.study-frame { position: relative; width: 100%; background: #f8eedc; border: 1px solid #c9b694 }
.study-frame > img { display: block; width: 100%; height: auto }
.leaders { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; fill: none; stroke: #8d3926; stroke-width: 1.35px }
.leaders line { vector-effect: non-scaling-stroke }
.pin { position: absolute; transform: translate(-50%,-50%); width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; background: transparent; color: #fff }
.pin span, .numeral { display: inline-grid; place-items: center; border-radius: 50%; font-family: Georgia,serif; font-variant-numeric: lining-nums; line-height: 1 }
.pin span { width: 22px; height: 22px; border: 1.5px solid #fff9e9; background: #99503c; box-shadow: 0 0 0 1px #71392755; font-size: 14px }
.pin[aria-pressed=true] span { background: #7d2c1d; box-shadow: 0 0 0 2px #fff3da, 0 0 0 3px #943d2d }
.plate-caption { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; letter-spacing: .045em; color: var(--muted); padding: 5px 0 8px }
.annotations { list-style: none; padding: 0; border-top: 1px solid var(--rule) }
.annotations li { border-bottom: 1px solid var(--rule) }
.annotation { width: 100%; padding: 11px 8px; border: 0; background: transparent; text-align: left; display: flex; align-items: baseline; gap: 10px; font-size: 15px; line-height: 1.68 }
.annotation[aria-pressed=true] { background: #f2ecdc }
.numeral { flex: 0 0 21px; height: 21px; font-size: 14px; background: var(--paper); border: 1px solid #a36955; color: var(--red) }
.annotation[aria-pressed=true] .numeral { color: white; background: var(--red); border-color: var(--red) }
.annotation b { color: var(--ink); margin-right: .65em }
.original-frame { background: #eeece2; border: 1px solid var(--rule); display: grid; place-items: center }
.original-frame img { display: block; max-width: 100%; max-height: 560px; object-fit: contain; width: auto; height: auto }
.photo-view figcaption { padding: 12px 0 16px; font-size: 15px }
.photo-view figcaption b { margin-right: .6em; color: var(--ink) }
.reference h2 { display: flex; align-items: center; gap: 10px }
.reference h2::before { content: ""; width: 3px; height: .85em; background: var(--red) }
.taxonomy dl { margin-top: 10px }
.taxon-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; align-items: baseline; border-bottom: 1px solid var(--rule); padding: 8px 0; font-size: 15px }
.taxon-row dt { color: var(--muted); font-size: 13px }
.taxon-row dd { margin: 0; display: flex; align-items: baseline; gap: 1px 9px; flex-wrap: wrap; line-height: 1.5 }
.taxon-latin { font-size: 15px; color: var(--muted); overflow-wrap: anywhere }
.care { margin-top: 28px }
.care-row { padding: 15px 0; border-bottom: 1px solid var(--rule) }
.care-kicker { font-weight: 650; color: #4a6047; font-size: 13px; gap: 5px }
.care-row h3 { font-size: 19px; line-height: 1.5; margin: 3px 0 5px }
.care-row p, .note p, .reason p { font-size: 15px; line-height: 1.8 }
.reason { margin-top: 5px }
summary { cursor: pointer; color: var(--ink) }
.reason summary { font-size: 13px; color: #506343; width: fit-content; padding: 6px 0 }
.reason p { color: var(--muted); margin: 2px 0 3px }
.note { border-left: 2px solid #a79e7b; background: #f2efe3; padding: 11px 14px; margin: 18px 0 8px }
.note h3 { font: 650 14px var(--sans); margin-bottom: 4px }
.sources { font-size: 13px; margin-top: 8px; color: var(--muted) }
.sources summary { padding: 10px 0 }
.sources ul { padding-left: 21px }
.sources li { margin: 5px 0 }
.sources a { text-underline-offset: 3px }

@media (max-width: 800px) {
  .page { padding-inline: clamp(16px, 5vw, 32px) }
  .masthead { height: 52px }
  .brand { font-size: 17px }
  .brand svg { width: 25px; height: 25px }
  .cover { min-height: 128px }
  .cover h1 { font-size: clamp(38px, 8vw, 49px) }
  .cover-copy { padding: 19px 0 }
  .cover-copy::before { width: 23px; height: 2px; margin-bottom: 9px }
  .cover p { font-size: 12px; margin-top: 8px }
  .cover-art { width: 53%; background-size: contain; background-position: right center }
  .tools { align-items: stretch; flex-direction: column; gap: 8px; padding: 12px 0 8px }
  .search { max-width: none; width: 100% }
  .areas { gap: 4px }
  .areas button { min-height: 40px; padding-inline: 12px }
  .plant-card { grid-template-columns: minmax(88px, 26%) minmax(0, 1fr); gap: 14px; padding: 13px 0 }
  .thumbnail { height: 112px }
  .card-copy h2 { font-size: 25px }
  .latin { font-size: 15px }
  .quick-care { border-top: 1px solid var(--rule); padding-top: 6px; margin-top: 6px; display: flex; font-size: 17px }
  .read-care { position: absolute; font-size: 11px; top: 16px; right: 1px; gap: 2px }
  .read-care svg { width: 10px; height: 10px }
  .location { font-size: 11px }
  .detail-mast .brand { font-size: 14px; gap: 5px }
  .detail-mast .brand svg { width: 20px; height: 20px }
  .entry-head { padding: 18px 0 15px }
  .entry-head h1 { font-size: 43px }
  .entry-latin { font-size: 21px; margin-top: 4px }
  .entry-location { font-size: 13px }
  .spread { display: block; margin-top: 18px }
  .intro { font-size: 14px; margin: 4px 0 }
  .view-switch { gap: 20px; margin-bottom: 8px }
  .annotation { padding: 9px 5px; gap: 9px }
  .reference { margin-top: 24px }
  .reference h2 { font-size: 24px }
  .taxon-row { grid-template-columns: 64px minmax(0, 1fr) }
  .original-frame img { max-height: 445px }
}
@media (max-width: 355px) {
  .page { padding-inline: 13px }
  .plant-card { grid-template-columns: 83px minmax(0,1fr); gap: 10px }
  .cover-art { width: 47% }
  .cover h1 { font-size: 37px }
  .read-care { font-size: 10px }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important }
}
.pot-number { font: 600 12px/1.05 var(--latin); font-variant-numeric: tabular-nums; color: var(--red); letter-spacing: .04em; padding-right: 6px; margin-right: 2px; border-right: 1px solid var(--rule) }
.quick-care.pending { color: var(--muted); font-weight: 400; font-size: 15px }
.entry-no { font-size: 12px; color: var(--red); margin: 0 0 4px; letter-spacing: .04em }
.where { max-width: 40%; text-align: right }
.where p { color: var(--muted); font-size: 13px; margin-top: 2px }
.identification, .study-explainer { font-size: 15px; line-height: 1.8; margin-top: 9px }
.identification { color: var(--muted) }
.identification b { margin-right: .55em; color: var(--ink) }
.photo-selector { display: flex; gap: 5px; padding: 3px 0 9px }
.photo-selector button { border: 1px solid var(--rule); border-radius: 4px; background: transparent; padding: 4px 11px; min-height: 39px; color: var(--muted); font-size: 13px }
.photo-selector button[aria-pressed=true] { border-color: var(--ink); color: var(--ink); background: var(--soft) }
.load-entry { padding: 2em 0; color: var(--muted) }
@media (min-width:801px) { .tools .search { flex: 1; min-width: 200px; max-width: 305px } .areas { justify-content: flex-end; gap: 2px } .areas button { padding: 0 10px } }
@media (max-width:800px) { .where p { font-size: 11px } .areas { gap: 3px } .areas button { padding: 0 10px } .entry-head h1 { font-size: clamp(32px, 9.5vw, 43px) } .entry-latin { overflow-wrap: anywhere } .entry-head > div:first-child { min-width: 0 } }

