:root {
  color-scheme: light;
  --paper: #f8f9f7;
  --ink: #263b32;
  --text: #303630;
  --muted: #69716a;
  --line: #dce1da;
  --soft: #edf1eb;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 16px; line-height: 1.5; }
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button:disabled { opacity: .4; cursor: default; }
button, a, input { touch-action: manipulation; }
:focus-visible { outline: 3px solid #647c54; outline-offset: 5px; }
[hidden] { display: none !important; }
.wrap { width: min(1260px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 10; top: 10px; left: 10px; padding: 12px 18px; background: white; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 14px; color: var(--ink); font: 29px/1.12 Georgia, 'Times New Roman', serif; }
.brand-mark { font: 43px/1 Georgia, serif; color: #536b4c; }
.brand-sub { display: block; margin-top: 7px; color: var(--muted); font: 13px/1.3 Arial, sans-serif; letter-spacing: .035em; }
.collection-link { display: inline-flex; gap: 26px; align-items: center; font-size: 14px; min-height: 44px; }
.collection-link span { color: #718169; font-size: 22px; }
.collection-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 37px 0 31px; }
.eyebrow { margin: 0 0 10px; color: var(--muted); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 0; color: var(--ink); font: 400 clamp(36px, 4.5vw, 57px)/1.08 Georgia, 'Times New Roman', serif; letter-spacing: -.035em; }
.collection-count { margin: 0 0 4px; color: var(--muted); font-size: 14px; white-space: nowrap; }
.collection-description { max-width: 600px; margin: 14px 0 0; color: var(--muted); font-size: 16px; line-height: 1.6; text-wrap: pretty; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding: 19px 0 20px; }
.section-heading h2 { margin: 0; font-size: 17px; font-weight: 500; color: var(--ink); }
.section-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 33px 26px; }
.flower-card { min-width: 0; scroll-margin-top: 20px; }
.card-actions { display: flex; flex-shrink: 0; }
.card-copy { padding: 0; border: 0; background: transparent; }
.photo-link { display: block; aspect-ratio: 3/4; background: #fff; border: 1px solid #e4e7e1; transition: border-color .18s, box-shadow .18s; }
.photo-link img { display: block; width: 100%; height: 100%; object-fit: contain; }
.card-caption { min-height: 64px; padding: 8px 0 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-caption h3 { margin: 0; font: 400 25px/1.2 Georgia, 'Times New Roman', serif; color: var(--ink); }
.card-caption h3 a { display: flex; align-items: center; min-height: 44px; }
.expand-link { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; color: #6a7e60; }
.expand-link svg, .icon-button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.singles-section { margin-top: 42px; }
.site-footer { margin-top: 62px; border-top: 1px solid var(--line); min-height: 111px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-name { color: var(--ink); font: 22px Georgia, serif; }
.footer-actions { display: flex; align-items: center; gap: 28px; font-size: 14px; color: var(--muted); }
.footer-actions a, .text-button { display: inline-flex; align-items: center; min-height: 44px; }
.text-button { padding: 0; background: none; border: 0; }
dialog { color: var(--text); border: 0; padding: 0; }
dialog::backdrop { background: #101811db; backdrop-filter: blur(4px); }
.photo-dialog { width: min(1080px, calc(100vw - 40px)); height: calc(100dvh - 40px); max-width: none; max-height: none; border-radius: 8px; overflow: hidden; background: var(--paper); }
.lightbox { height: 100%; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto auto; }
.lightbox-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 24px; }
.detail-type { margin: 0 0 3px; color: var(--muted); font-size: 13px; }
.lightbox-header h2 { margin: 0; color: var(--ink); font: 400 clamp(23px, 3.2vw, 31px)/1.15 Georgia, serif; }
.composition-heading { flex: 1; min-width: 0; }
.composition-navigation { display: grid; grid-template-columns: 46px minmax(0, 1fr) 46px; align-items: center; gap: 8px; width: 100%; max-width: 370px; }
.composition-navigation h2 { text-align: center; overflow-wrap: anywhere; }
.icon-button { display: inline-grid; place-items: center; width: 46px; height: 46px; flex: 0 0 46px; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: transparent; }
.image-viewport { position: relative; min-width: 0; min-height: 0; padding: 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; overscroll-behavior: contain; touch-action: none; background: #e9ede7; }
.detail-image { display: block; flex: 0 0 auto; width: var(--fit-width, 100%); height: var(--fit-height, 100%); max-width: none; max-height: none; object-fit: contain; transform-origin: center; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
.photo-dialog[open] .detail-image { will-change: transform; }
.image-viewport.is-zoomed { touch-action: none; cursor: grab; }
.image-viewport.is-dragging { cursor: grabbing; }
.image-error { max-width: 310px; padding: 24px; text-align: center; }
.image-error button { display: block; margin: 16px auto 0; padding: 9px 15px; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; }
.lightbox-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 24px; }
.photo-navigation, .photo-actions { display: flex; align-items: center; gap: 9px; }
.detail-counter { min-width: 60px; text-align: center; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.icon-button[aria-pressed='true'] { background: var(--ink); color: white; border-color: var(--ink); }
.copy-dialog { width: min(440px, calc(100vw - 32px)); border-radius: 8px; padding: 26px; }
.copy-dialog h2 { margin: 0 0 18px; color: var(--ink); font: 26px Georgia, serif; }
.copy-dialog label { display: block; font-size: 14px; margin-bottom: 6px; }
.copy-dialog input { width: 100%; border: 1px solid var(--line); border-radius: 4px; padding: 12px; background: white; color: var(--text); }
.plain-button { min-height: 44px; border: 0; border-radius: 4px; padding: 9px 20px; margin-top: 18px; background: var(--ink); color: white; }
.toast { position: fixed; z-index: 20; left: 50%; bottom: 24px; max-width: calc(100vw - 32px); transform: translate(-50%, 12px); border-radius: 5px; background: var(--ink); color: white; padding: 12px 18px; text-align: center; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
@media (hover: hover) {
  .photo-link:hover { border-color: #a5b19b; box-shadow: 0 5px 18px #263b3210; }
  .icon-button:hover { background: var(--soft); }
  .icon-button[aria-pressed='true']:hover { background: #37523f; }
  .expand-link:hover, .footer-actions a:hover, .text-button:hover { color: var(--ink); }
}
@media (max-width: 1020px) {
  .wrap { width: calc(100% - 56px); }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 27px 22px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
  .site-header { min-height: 88px; gap: 12px; }
  .brand { font-size: 25px; gap: 10px; }
  .brand-mark { font-size: 35px; }
  .brand-sub { font-size: 12px; margin-top: 6px; }
  .collection-link { display: none; }
  .collection-intro { display: block; padding: 27px 0 23px; }
  h1 { font-size: 40px; }
  .eyebrow { font-size: 11px; margin-bottom: 8px; }
  .collection-count { margin: 13px 0 0; font-size: 13px; }
  .collection-description { margin-top: 12px; font-size: 15px; }
  .section-heading { padding: 17px 0; }
  .section-heading p { font-size: 12px; }
  .gallery-grid { gap: 23px 18px; }
  .card-caption h3 { font-size: 24px; }
  .site-footer { margin-top: 38px; padding-block: 22px; align-items: flex-start; flex-direction: column; gap: 8px; }
  .footer-actions { width: 100%; justify-content: space-between; gap: 20px; }
  .photo-dialog { width: 100vw; height: 100dvh; margin: 0; border-radius: 0; }
  .lightbox-header { padding: 14px 16px; padding-top: max(14px, env(safe-area-inset-top)); }
  .detail-type { font-size: 11px; }
  .image-viewport { padding: 4px; }
  .lightbox-footer { gap: 8px; padding: 11px 12px max(11px, env(safe-area-inset-bottom)); }
  .icon-button { width: 44px; height: 44px; flex-basis: 44px; }
  .photo-navigation, .photo-actions { gap: 6px; }
  .detail-counter { min-width: 45px; font-size: 13px; }
}
@media (max-width: 520px) {
  .gallery-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .singles-section { margin-top: 31px; }
}
@media (max-width: 360px) {
  .brand { font-size: 23px; }
  h1 { font-size: 36px; }
  .lightbox-footer { padding-inline: 8px; }
  .photo-navigation, .photo-actions { gap: 2px; }
  .detail-counter { min-width: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.card-description { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.detail-info { min-height: 0; padding: 0 24px; max-height: min(32dvh, 180px); overflow-y: auto; overscroll-behavior: contain; }
.detail-info summary { min-height: 44px; padding: 10px 0; color: var(--muted); font-size: 14px; cursor: pointer; touch-action: manipulation; }
.detail-info-body { padding-bottom: 14px; }
.detail-description { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.composition-dimensions { margin: 10px 0 0; font-size: 14px; }
.modification-note { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.photo-thumbnails { display: flex; gap: 8px; overflow-x: auto; padding: 8px 24px; min-width: 0; background: var(--paper); overscroll-behavior-x: contain; }
.photo-thumbnails button { padding: 2px; width: 56px; height: 64px; flex: 0 0 56px; background: white; border: 2px solid transparent; border-radius: 4px; }
.photo-thumbnails button[aria-pressed="true"] { border-color: var(--ink); }
.photo-thumbnails img { width: 100%; height: 100%; object-fit: contain; display: block; }
.choice-guide { margin-top: 48px; padding: 28px 0 0; border-top: 1px solid var(--line); }
.choice-guide h2 { margin: 0 0 12px; color: var(--ink); font: 400 28px/1.2 Georgia, serif; }
.choice-guide > p { max-width: 780px; color: var(--muted); line-height: 1.65; }
.choice-steps { display: flex; flex-wrap: wrap; gap: 14px 38px; padding-left: 22px; margin: 24px 0; color: var(--ink); }
.choice-steps li { padding-left: 2px; }
.choice-example { border-left: 2px solid #a5b19b; padding: 4px 0 4px 16px; }
.choice-example span { display: block; margin-bottom: 5px; font-size: 13px; }
.choice-example b { padding-inline: 5px; font-weight: normal; }
@media (max-width:760px) {
  .lightbox-header h2 { font-size: 28px; }
  .lightbox-header { gap: 10px; }
  .composition-navigation { grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 4px; }
  .composition-navigation h2 { font-size: clamp(20px, 6vw, 28px); }
  .detail-type { font-size: 12px; }
  .detail-info { padding-inline: 16px; }
  .photo-thumbnails { padding: 6px 12px; }
  .photo-thumbnails button { height: 60px; }
  .lightbox-footer { padding-inline: max(8px, env(safe-area-inset-left)) max(8px, env(safe-area-inset-right)); }
  .photo-navigation, .photo-actions { gap: 4px; }
  .choice-steps { flex-direction: column; gap: 8px; }
}
@media (max-height:550px) and (min-width:560px) {
  .photo-dialog { width: 100vw; height: 100dvh; margin: 0; border-radius: 0; }
  .lightbox { grid-template-columns: minmax(0, 1fr) minmax(200px, 27%); grid-template-rows: auto minmax(0, 1fr) auto auto; }
  .lightbox-header { grid-column: 1 / -1; grid-row: 1; padding: 6px max(16px, env(safe-area-inset-right)) 6px max(16px, env(safe-area-inset-left)); }
  .detail-type { display: none; }
  .lightbox-header h2 { font-size: 26px; }
  .image-viewport { grid-column: 1; grid-row: 2 / 4; padding: 4px; }
  .detail-info { grid-column: 2; grid-row: 2; max-height: none; padding-inline: 12px; }
  .photo-thumbnails { grid-column: 2; grid-row: 3; flex-wrap: wrap; gap: 6px; padding: 6px 12px; max-height: 140px; overflow-y: auto; }
  .photo-thumbnails button { height: 54px; width: 48px; flex-basis: 48px; }
  .lightbox-footer { grid-column: 1 / -1; grid-row: 4; padding-block: 6px; padding-inline: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right)); }
}
