:root {
  color-scheme: light;
  --ink: #142d2b;
  --muted: #526e69;
  --line: #dceae6;
  --bg: #f5f9f7;
  --white: #fff;
  --mint: #d7f2e9;
  --accent: #006d61;
  --deep: #10483f;
  font-family: system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--deep); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid #048a77; outline-offset: 3px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, p { margin: 0; overflow-wrap: anywhere; }
h1 { font-size: clamp(2rem, 4vw, 3.65rem); letter-spacing: -.055em; line-height: 1.06; }
h2 { font-size: 1.5rem; letter-spacing: -.025em; }
.wrap { width: min(1380px, 100% - 64px); margin-inline: auto; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(100%); }
.skip:focus { display: block; padding: .6rem; }
.top { background: #fff; border-bottom: 1px solid var(--line); }
.top-inner { width: min(1380px, 100% - 64px); margin: auto; display: flex; align-items: center; gap: 22px; padding: 16px 0; }
.brand { display: inline-flex; gap: 10px; align-items: center; font-weight: 800; white-space: nowrap; letter-spacing: -.04em; font-size: 1.25rem; }
.brand span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50% 50% 15% 50%; color: white; background: var(--accent); }
.primary, .account { display: flex; gap: 14px; align-items: center; font-size: .86rem; font-weight: 650; }
.account { margin-left: auto; white-space: nowrap; }
.account form { margin: 0; }
.account form button { border: 0; background: transparent; color: var(--deep); padding: 4px; }
.search { flex: 1; min-width: 140px; display: flex; border: 1px solid var(--line); border-radius: 12px; background: #f3f8f6; overflow: hidden; }
.search:focus-within { outline: 2px solid var(--accent); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 9px 12px; color: var(--ink); outline: none; }
.search button { border: 0; background: var(--mint); color: var(--deep); padding: 0 .9rem; font-weight: 700; }
.intro { position: relative; display: flex; justify-content: space-between; gap: 12px; align-items: end; margin: 26px 0 18px; padding: clamp(24px,5vw,52px); border-radius: 24px 24px 24px 5px; color: white; background: radial-gradient(ellipse at 90% 0%, #177b70, transparent 56%), #103c37; }
.eyebrow { font-size: .82rem; font-weight: 750; margin-bottom: .5rem; color: #bbebdf; }
.total { white-space: nowrap; font-size: .9rem; color: #e2fbf3; }
.chips { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; margin: 0 0 20px; }
.chips a, .chips span { padding: .48rem .82rem; border-radius: 9px; font-size: .86rem; font-weight: 650; }
.chips a { background: white; border: 1px solid var(--line); }
.chips a[aria-current] { color: white; background: var(--accent); border-color: var(--accent); }
.pin-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 18px; align-items: start; }
.pin-grid.masonry { grid-auto-rows: 4px; }
.card { position: relative; display: inline-block; vertical-align: top; width: 100%; margin: 0 0 18px; border-radius: 20px 20px 20px 5px; overflow: hidden; background: white; border: 1px solid var(--line); break-inside: avoid; }
.quick-save { position: absolute; right: 9px; top: 9px; }
.quick-save .button { padding: .30rem .52rem; font-size: .74rem; }
.card-image { display: block; background: #d3eae4; overflow: hidden; }
.card-image img { width: 100%; height: auto; aspect-ratio: 1 / 1.04; object-fit: cover; transition: transform .2s ease; }
.card:nth-child(3n) .card-image img { aspect-ratio: 1 / 1.14; }
.card:nth-child(4n) .card-image img { aspect-ratio: 1 / .96; }
.card-image:hover img { transform: scale(1.025); }
.card-text { padding: 13px 15px 15px; }
.topic { display: inline-block; font-size: .75rem; font-weight: 800; color: var(--accent); }
.card h2 { font-size: 1rem; line-height: 1.3; margin: 3px 0 7px; }
.card h2 a { color: var(--ink); }
.byline { display: flex; gap: 8px; align-items: center; justify-content: space-between; font-size: .75rem; overflow-wrap: anywhere; }
.byline a, .muted { color: var(--muted); }
.pagination { justify-content: center; margin: 18px 0 30px; }
.footer { display: flex; flex-wrap: wrap; gap: 15px; color: var(--muted); font-size: .88rem; margin-top: 26px; padding: 20px 0 28px; border-top: 1px solid var(--line); }
.breadcrumb { display: flex; gap: 10px; color: var(--muted); font-size: .86rem; margin: 24px 0 13px; }
.pin-detail { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 24px 24px 24px 5px; background: white; }
.detail-media { position: relative; align-self: start; background: #dbece7; }
.detail-media img { width: 100%; max-height: 730px; object-fit: contain; }
.zoom-label { position: absolute; bottom: 12px; left: 12px; padding: 7px 10px; background: white; border-radius: 8px; font-size: .82rem; font-weight: 700; }
.detail-copy { padding: clamp(18px, 4vw, 52px); min-width: 0; }
.detail-copy h1 { font-size: clamp(1.9rem,4vw,3.1rem); margin: 6px 0 12px; }
.lead { font-size: 1.1rem; color: var(--muted); }
.author { display: flex; gap: 10px; align-items: center; margin: 20px 0 14px; font-size: .92rem; }
.author a { font-weight: 750; }
.author small { display: block; color: var(--muted); }
.avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--mint); font-weight: 800; }
.pin-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.button { display: inline-block; padding: .53rem .84rem; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--deep); font-size: .86rem; font-weight: 750; }
.button:hover { background: var(--mint); text-decoration: none; }
.solid { background: var(--accent); color: white; border-color: var(--accent); }
.solid:hover { background: var(--deep); }
.selected { background: var(--mint); }
.pin-body { margin: 20px 0 16px; }
.pin-body p + p { margin-top: 12px; }
.detail-copy .chips { margin-bottom: 0; }
.panel { background: white; border: 1px solid var(--line); border-radius: 17px; padding: clamp(15px,3vw,30px); }
.comments, .related { margin-top: 24px; }
.comments h2, .related h2 { margin-bottom: 14px; }
.comment { padding: 15px 0; border-bottom: 1px solid var(--line); }
.comment time { margin-left: 9px; color: var(--muted); font-size: .85rem; }
.comment p { margin-top: 4px; }
.auth { margin: 26px auto; max-width: 490px; }
.auth h1 { font-size: 2rem; }
.stack { display: grid; gap: 12px; }
.form { margin-top: 16px; max-width: 680px; }
.form > button { justify-self: start; }
.auth > a { display: inline-block; margin-top: 14px; }
.form label { display: grid; gap: 4px; font-weight: 650; font-size: .90rem; }
.form input, .form textarea, .form select { width: 100%; padding: .6rem; border: 1px solid #b5cdc6; border-radius: 8px; background: #fcfefd; color: var(--ink); }
.form textarea { resize: vertical; }
.form-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.notice { border: 1px solid #a8dbcf; border-radius: 9px; background: var(--mint); padding: .7rem .9rem; margin: 18px 0; }
.error { background: #fff1ef; border-color: #ebafa7; }
.mod { display: grid; gap: 7px; margin-bottom: 9px; }
.admin-row { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.admin-row span { color: var(--muted); white-space: nowrap; }
dialog { border: 1px solid var(--line); border-radius: 14px; background: white; padding: 12px; max-width: 95vw; }
dialog::backdrop { background: #0a2823d9; }
dialog form { text-align: right; margin-bottom: 8px; }
dialog img { max-width: 88vw; max-height: 76vh; object-fit: contain; }
@media (max-width: 980px) {
  .pin-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .top-inner { flex-wrap: wrap; gap: 10px 18px; }
  .search { order: 3; flex-basis: 100%; }
}
@media (max-width: 690px) {
  .wrap, .top-inner { width: calc(100% - 28px); }
  .pin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 10px; }
  .card { margin-bottom: 10px; border-radius: 13px 13px 13px 4px; }
  .card-text { padding: 9px; }
  .card h2 { font-size: .91rem; }
  .primary { order: 4; flex-basis: 100%; }
  .pin-detail { grid-template-columns: 1fr; }
  .detail-media img { max-height: 530px; }
  .form-pair { grid-template-columns: 1fr; }
  .intro { align-items: start; flex-direction: column; }
}
@media (max-width: 340px) { .pin-grid { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.form input.install-check { width: auto; margin-right: .4rem; }
