:root {
  color-scheme: light;
  --paper: #f5f3e9;
  --cream: #fbfaf5;
  --ink: #1d3228;
  --leaf: #285943;
  --soft: #526259;
  --line: #d8dcd0;
  --accent: #e3ebd8;
  --heading: "Noto Serif KR", "Nanum Myeongjo", "NanumMyeongjo", Georgia, serif;
  --body: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--body); }
a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid #2b6b4e; outline-offset: 4px; }
img { display: block; width: 100%; height: auto; }
figure, h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.wrap { width: min(1120px, calc(100% - 80px)); margin-inline: auto; }
.skip { position: absolute; z-index: 2; top: -100px; left: 12px; background: var(--ink); color: white; padding: 12px; }
.skip:focus { top: 12px; }
.header { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 84px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 840; font-size: 1.125rem; line-height: 1.2; }
.brand-mark { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 50%; background: var(--ink); color: #f4ebd7; font: italic 1.65rem Georgia, serif; }
.brand-sub { display: block; margin-top: 5px; font: 700 .6875rem/1.2 ui-monospace, monospace; letter-spacing: .085em; color: var(--soft); }
.header-profile { padding: 9px 15px; border: 1px solid #aeb9ae; border-radius: 100px; font-size: .875rem; font-weight: 750; }
.header-profile:hover { background: var(--accent); }
.hero { display: grid; align-items: center; grid-template-columns: minmax(0, .89fr) minmax(0, 1.11fr); gap: clamp(30px, 4vw, 72px); padding: 54px 0 49px; }
.handle { color: var(--leaf); font-weight: 760; font-size: .98rem; margin-bottom: 16px; }
.handle a:hover { text-decoration: underline; }
h1 { font: 850 clamp(2.8rem, 5.6vw, 5rem)/1.12 var(--heading); letter-spacing: -.075em; word-break: keep-all; }
.intro { max-width: 24ch; font-size: 1.0625rem; color: var(--soft); word-break: keep-all; margin: 24px 0 27px; }
.button { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 21px; border-radius: 6px; background: var(--ink); color: #fff; font-size: .9375rem; font-weight: 740; }
.button:hover, .button:focus-visible { background: var(--leaf); }
.hero-photo { margin: 0; background: var(--ink); overflow: hidden; border-radius: 16px 16px 5px 5px; }
.hero-photo img { aspect-ratio: 1.42; object-fit: cover; object-position: 46% 49%; background: #b8c4ab; }
.hero-photo figcaption { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; color: #f7f7ed; font-size: .8125rem; }
.hero-photo figcaption a { color: #d6e1d9; text-decoration: underline; text-underline-offset: 3px; }
.browse { border-top: 1px solid var(--line); padding-top: 27px; scroll-margin-top: 14px; }
.browse-heading h2, .panel-heading h3 { font: 800 clamp(1.38rem, 3vw, 1.9rem)/1.24 var(--heading); letter-spacing: -.047em; }
.categories { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 16px 0; }
.categories a { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 0 11px; align-items: center; min-height: 80px; padding: 11px 13px; border-radius: 9px; background: var(--cream); border: 1px solid var(--line); }
.categories a[aria-current="true"] { border-color: #70917b; background: var(--accent); }
.categories a:hover { border-color: #70917b; }
.category-icon, .resource-icon { display: grid; place-items: center; width: 38px; height: 38px; align-self: center; color: var(--leaf); font-size: 1.375rem; background: #edf0e6; border-radius: 7px; grid-row: span 2; }
.categories strong { font-size: .97rem; letter-spacing: -.025em; }
.categories a > span:last-child { color: var(--soft); font-size: .78rem; }
.panel { padding: 23px clamp(15px, 3vw, 25px) 24px; background: var(--cream); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; scroll-margin-top: 15px; }
.panel:focus { outline: none; }
.panel-heading { margin-bottom: 18px; }
.panel-heading h3 { font-size: 1.37rem; }
.panel-heading p { margin-top: 5px; color: var(--soft); font-size: .94rem; }
.photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.photos img { aspect-ratio: 1.5; object-fit: cover; border-radius: 6px; background: #dbe4d8; }
.photos figcaption { margin-top: 7px; }
.photos strong { display: block; line-height: 1.4; }
.photos figcaption a, .photo-note { font-size: .76rem; color: var(--soft); }
.photos figcaption a { text-decoration: underline; text-underline-offset: 3px; }
.photo-note { margin-top: 13px; }
.resource { display: grid; align-items: center; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 11px; padding: 12px 13px; border-radius: 7px; border: 1px solid var(--line); }
.resource + .resource { margin-top: 9px; }
a.resource:hover { background: #f0f3e9; }
.resource strong, .resource small { display: block; }
.resource small { color: var(--soft); font-size: .8125rem; }
.resource-action { white-space: nowrap; color: var(--leaf); font: 750 .8125rem/1.4 var(--body); }
button.resource-action { cursor: pointer; border: 1px solid #9bafa0; padding: 8px 11px; border-radius: 6px; background: #eff2e9; }
.copy-status { color: var(--leaf); font-size: .875rem; }
.copy-status:not(:empty) { margin-top: 9px; }
.footer { display: flex; justify-content: space-between; gap: 10px; margin-top: 30px; padding: 19px 0 26px; border-top: 1px solid var(--line); font-size: .875rem; color: var(--soft); }
.footer strong { color: var(--ink); }
.footer div span { margin-left: .6rem; }
.footer a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .wrap { width: calc(100% - 48px); }
  .hero { gap: 22px; }
  .categories a { grid-template-columns: 32px minmax(0,1fr); padding-inline: 9px; column-gap: 8px; }
  .category-icon { width: 32px; height: 34px; }
}
@media (max-width: 690px) {
  .wrap { width: calc(100% - 36px); }
  .header { min-height: 68px; }
  .brand-mark { width: 37px; height: 37px; font-size: 1.45rem; }
  .header-profile { padding: 7px 11px; }
  .hero { display: grid; grid-template-columns: minmax(0,1fr); padding: 25px 0 23px; gap: 20px; }
  .hero h1 { font-size: clamp(2.55rem, 10vw, 4rem); }
  .handle { margin-bottom: 8px; }
  .intro { max-width: 33ch; margin: 13px 0 16px; font-size: 1rem; }
  .hero-photo img { aspect-ratio: 1.88; }
  .browse { padding-top: 19px; }
  .categories { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; padding-top: 12px; }
  .categories a { min-height: 67px; }
  .photos { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .photos figure:first-child { grid-column: 1 / -1; }
  .photos figure:first-child img { aspect-ratio: 1.85; }
  .footer { flex-wrap: wrap; margin-top: 20px; }
}
@media (max-width: 365px) {
  .wrap { width: calc(100% - 26px); }
  .resource { gap: 8px; padding-inline: 8px; grid-template-columns: 29px minmax(0,1fr) auto; }
  .resource-icon { width: 29px; }
  .resource strong { font-size: .9rem; }
  .resource small { font-size: .75rem; }
}
