:root {
  color-scheme: light;
  --paper: #f4f7f3;
  --ink: #212821;
  --muted: #4d5b50;
  --green: #21583f;
  --line: #d5dbd0;
  font-family: system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--green); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .13em; }
a:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.shell { width: min(100% - 3rem, 68rem); margin-inline: auto; }
.skip { position: fixed; left: 1rem; top: 1rem; padding: .7rem 1rem; background: var(--paper); transform: translateY(-200%); z-index: 1; }
.skip:focus { transform: none; }
.masthead, .footer { display: flex; align-items: center; gap: 1.5rem; padding-block: 1rem; }
.masthead { justify-content: space-between; border-bottom: 1px solid var(--line); }
.masthead-links { display: flex; flex-wrap: wrap; gap: .4rem 1.35rem; font-size: .95rem; }
.masthead-links a { padding-block: .45rem; }
.brand { display: inline-flex; align-items: center; gap: .45rem; color: var(--ink); font-size: 1.35rem; font-weight: 800; letter-spacing: -.045em; text-decoration: none; }
.brand span { color: var(--green); margin-left: -.45rem; }
.hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; padding-block: clamp(2.6rem, 6vw, 5rem); border-bottom: 1px solid var(--line); }
.hero-text { grid-template-columns: minmax(0, 45rem); }
h1, h2 { font-family: Georgia, serif; font-weight: 400; letter-spacing: -.035em; }
h1 { margin: 0; font-size: clamp(2.4rem, 5.6vw, 4.65rem); line-height: 1.04; text-wrap: balance; }
h2 { margin: 0 0 .7rem; font-size: clamp(1.6rem, 3.1vw, 2.3rem); line-height: 1.15; }
.section-link { display: inline-block; margin-bottom: 1.35rem; font-size: .95rem; }
.intro { max-width: 45ch; margin: 1.35rem 0 0; color: var(--muted); font-size: clamp(1.1rem, 2vw, 1.28rem); line-height: 1.55; }
.capture { max-width: 49ch; margin: 1rem 0 0; line-height: 1.55; }
.article-action { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .8rem 1.15rem; background: var(--green); color: var(--paper); font: 600 1rem/1.3 system-ui, sans-serif; text-decoration: none; }
.article-action:hover { background: #193f30; }
.hero .article-action { margin-top: 1.3rem; }
.article-link { font-weight: 650; }
.steps .section-action { margin-top: 1.15rem; }
.hero-image { display: grid; margin: 0; background: #eae8df; }
.hero-image img { display: block; width: 100%; height: auto; max-height: 27rem; object-fit: contain; }
.reading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.15fr); gap: clamp(2rem, 6vw, 5rem); padding-block: 2.6rem 3rem; }
.contents { align-self: start; color: var(--muted); font-size: .95rem; line-height: 1.55; }
.contents p { font-weight: 650; margin: 0 0 .55rem; }
.contents ol { margin: 0; padding-left: 1.35rem; }
.contents li + li { margin-top: .5rem; }
.steps { max-width: 67ch; }
.steps section { scroll-margin-top: 1rem; }
.steps section + section { margin-top: 2.4rem; }
.steps p { margin: 0; font-size: 1.075rem; line-height: 1.68; }
.steps .tool-link { margin-top: 2.5rem; font-weight: 650; }
.comparison { margin: 1.5rem 0 .8rem; }
.comparison-stage { position: relative; overflow: hidden; background: #eae8df; }
.comparison-stage.portrait { max-width: 28rem; margin-inline: auto; }
.comparison-stage img { display: block; width: 100%; height: auto; }
.comparison-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--photo-split, 50%)) 0 0); }
.comparison-before img { height: 100%; object-fit: contain; }
.comparison-label { position: absolute; top: .65rem; padding: .25rem .55rem; background: var(--paper); color: var(--ink); font-size: .8rem; }
.comparison-label.before { left: .65rem; }
.comparison-label.after { right: .65rem; }
.comparison-handle { position: absolute; left: var(--photo-split, 50%); top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 2.7rem; height: 2.7rem; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); font-size: 1.2rem; pointer-events: none; }
.comparison-stage::after { content: ''; position: absolute; left: var(--photo-split, 50%); top: 0; bottom: 0; border-left: 2px solid var(--paper); pointer-events: none; }
.comparison-stage input { position: absolute; inset: 0; margin: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; touch-action: pan-y; z-index: 1; }
.comparison-stage:focus-within { outline: 3px solid var(--green); outline-offset: 4px; }
.comparison-stage.is-unavailable .comparison-before, .comparison-stage.is-unavailable .comparison-handle, .comparison-stage.is-unavailable::after { display: none; }
.photo-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 1rem; margin: 1.5rem 0 .8rem; }
.photo-pair img { display: block; width: 100%; height: auto; }
[hidden] { display: none !important; }
table { width: 100%; margin-top: 1.4rem; border-collapse: collapse; text-align: left; font-size: .95rem; }
th, td { border-bottom: 1px solid var(--line); padding: .7rem .6rem; }
tbody th { font-weight: 400; }
.related { padding-block: 2rem; border-top: 1px solid var(--line); }
.index-list { padding-block: 1rem 2.5rem; }
.guide-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; list-style: none; margin: 0; padding: 0; }
.guide-list li { border-bottom: 1px solid var(--line); padding: 1.15rem 0; }
.guide-list a { display: inline-block; font-weight: 650; font-size: 1.1rem; }
.guide-list p { margin: .45rem 0 0; max-width: 50ch; color: var(--muted); line-height: 1.5; }
.footer { flex-wrap: wrap; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
@media (max-width: 43rem) {
  .shell { width: min(100% - 2rem, 34rem); }
  .hero, .reading, .guide-list { grid-template-columns: minmax(0, 1fr); }
  .hero { gap: 1.65rem; }
  .hero-image img { max-height: 18rem; }
  .reading { gap: 2rem; }
}
