:root { font-family: "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif; color: #302820; background: #fffaf6; }
* { box-sizing: border-box; }
body { margin: 0; word-break: keep-all; overflow-wrap: anywhere; }
header, main { max-width: 1140px; margin: auto; padding-inline: clamp(16px,4vw,48px); }
header { display: flex; justify-content: space-between; align-items: center; min-height: 76px; border-bottom: 1px solid #e6dcd2; font-size: .9rem; }
header div { display: flex; align-items: center; gap: 14px; font-weight: 700; }
a { color: #86401d; text-underline-offset: 3px; } a:focus-visible { outline: 3px solid #b4511d; outline-offset: 3px; }
.brand { font: 800 2.1rem/1 system-ui,sans-serif; letter-spacing: -.085em; color: #bf4a12; text-decoration: none; }
main { display: grid; grid-template-columns: minmax(195px,245px) minmax(0,1fr); gap: clamp(24px,4vw,56px); padding-block: 36px; }
aside h2 { margin: 0 0 14px; font-size: 1.08rem; }
.topics { display: grid; gap: 5px; }
.topics a { text-decoration: none; border-radius: 10px; padding: 12px 14px; color: #432f22; border: 1px solid transparent; }
.topics a[aria-current] { background: #ffeadb; border-color: #efb590; }
.topics small { display: block; color: #705d4f; font-size: .78rem; margin-top: 4px; line-height: 1.5; }
.support { display: inline-block; margin: 18px 14px; font-size: .86rem; }
.topic-name { margin: 0; font-size: .88rem; font-weight: 700; color: #9b431a; }
.topic-name span { color: #6d6057; }
h1 { margin: 8px 0; font-size: clamp(1.55rem,3.2vw,2.3rem); line-height: 1.25; letter-spacing: -.06em; }
.instruction { margin: 12px 0 18px; font-size: 1rem; line-height: 1.7; }
figure { margin: 0; }
.photo { display: grid; place-items: center; min-height: 250px; padding: 18px; background: #f1ebe5; border: 1px solid #e3d8cd; border-radius: 14px; }
.photo svg { display: block; width: auto; height: auto; max-width: 100%; max-height: min(47vh,430px); filter: drop-shadow(0 3px 5px #34231121); }
rect { fill: none; vector-effect: non-scaling-stroke; }
.halo { stroke: #fff; stroke-width: 6px; }
.mark { stroke: #df4a05; stroke-width: 3px; }
figcaption { display: flex; gap: 5px 10px; align-items: baseline; flex-wrap: wrap; margin: 9px 1px 18px; color: #685a50; font-size: .75rem; line-height: 1.5; }
.zoom { margin-left: auto; }
.controls { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.controls a { text-decoration: none; padding: 10px 15px; border-radius: 9px; font-weight: 700; font-size: .91rem; }
.primary { color: white; background: #a94212; }
.dots { display: flex; gap: 7px; justify-content: center; margin: 14px auto 0; }
.dots a { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid #e1d2c6; text-decoration: none; font-size: .82rem; }
.dots a[aria-current] { border-color: #ab4919; background: #ffeadb; font-weight: 700; }
@media(max-width:730px) {
  header { min-height: 60px; } header>a { font-size: .78rem; }
  main { grid-template-columns: 1fr; gap: 20px; padding-block: 18px; }
  aside h2 { font-size: .93rem; margin: 0 0 7px; }
  .topics { display: flex; flex-wrap: wrap; gap: 5px; }
  .topics a { padding: 5px 9px; border: 1px solid #e6d8cc; font-size: .76rem; }
  .topics small { display: none; } .support { margin: 8px 0 0; font-size: .75rem; }
  .photo { min-height: 150px; padding: 8px; } .photo svg { max-height: 53vh; }
}

