/* 안산교습소철거 — Editorial / Magazine style
   cream paper background + dark green ink + charcoal text
   Noto Serif KR (headlines/pull-quote) + Noto Sans KR (body)
*/

:root {
  --paper: #F4EFE1;
  --paper-deep: #EBE3CE;
  --ink: #24291F;
  --ink-soft: #4B5142;
  --green: #1F3B2D;
  --green-deep: #16281E;
  --green-tint: #E4E9DD;
  --rule: #D8CFB6;
  --accent-gold: #A9863C;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans KR", -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  overflow-x: hidden;
}

h1, h2, h3, .pull-quote, .hero-kicker, .masthead-brand {
  font-family: "Noto Serif KR", "Nanum Myeongjo", serif;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Masthead */
.masthead {
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}
.masthead-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.masthead-brand {
  color: var(--green-deep);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.masthead-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}
.masthead-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.88rem;
  padding: 12px 10px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
}
.masthead-nav a:hover,
.masthead-nav a:focus {
  color: var(--green-deep);
  border-bottom-color: var(--accent-gold);
}

/* Full-bleed hero */
.hero-bleed {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: 62vh;
  min-height: 340px;
  max-height: 640px;
  overflow: hidden;
  background: var(--green-deep);
}
.hero-bleed-picture,
.hero-bleed-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-bleed::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 40, 30, 0.15) 0%, rgba(22, 40, 30, 0.55) 60%, rgba(22, 40, 30, 0.88) 100%);
}
.hero-bleed-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 20px 34px;
  max-width: 900px;
  margin: 0 auto;
  color: #F4EFE1;
  z-index: 2;
}
.hero-kicker {
  margin: 0 0 10px;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #D8C79A;
}
.hero-bleed h1 {
  margin: 0 0 14px;
  font-size: clamp(2.1rem, 8vw, 3.6rem);
  font-weight: 700;
  line-height: 1.2;
  color: #FBF8EF;
  text-shadow: 0 2px 18px rgba(0,0,0,0.35);
}
.hero-dek {
  margin: 0;
  font-family: "Noto Serif KR", serif;
  font-size: clamp(0.95rem, 2.6vw, 1.15rem);
  line-height: 1.6;
  color: #E9E3CD;
  max-width: 56ch;
}

/* Article layout — narrow readable column */
.issue {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 20px 60px;
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.lead {
  margin: 0;
  font-family: "Noto Serif KR", serif;
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  line-height: 1.85;
  color: var(--green-deep);
  padding-bottom: 26px;
  border-bottom: 1px solid var(--rule);
}

.column h2 {
  margin: 0 0 16px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green-deep);
  line-height: 1.4;
  position: relative;
  padding-bottom: 10px;
}
.column h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 46px;
  height: 3px;
  background: var(--accent-gold);
}
.column p {
  margin: 0 0 14px;
  color: var(--ink);
}
.column p:last-child { margin-bottom: 0; }

/* Pull quote */
.pull-quote {
  margin: 6px -4px;
  padding: 10px 0 10px 26px;
  border-left: 4px solid var(--green);
  font-size: clamp(1.2rem, 3.6vw, 1.55rem);
  font-style: italic;
  line-height: 1.6;
  color: var(--green-deep);
}

/* Table */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
table {
  width: 100%;
  min-width: 420px;
  border-collapse: collapse;
  font-size: 0.95rem;
}
caption { text-align: left; }
th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
thead th {
  font-family: "Noto Serif KR", serif;
  color: var(--green-deep);
  border-bottom: 2px solid var(--green-deep);
  font-weight: 700;
}
tbody tr:nth-child(even) { background: var(--green-tint); }

/* Ordered steps list */
.steps {
  margin: 0;
  padding-left: 0;
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.steps li {
  position: relative;
  padding: 4px 0 4px 42px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green);
  color: #F4EFE1;
  font-family: "Noto Serif KR", serif;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Gallery — centered */
.gallery-section h2 { text-align: center; }
.gallery-section h2::after { left: 50%; transform: translateX(-50%); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 560px;
  margin: 0 auto;
}
.gallery-grid picture {
  border: 6px solid #fff;
  box-shadow: 0 4px 16px rgba(22, 40, 30, 0.14);
  overflow: hidden;
}

/* FAQ */
.faq-section h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  color: var(--green-deep);
  font-weight: 700;
}
.faq-section h3:not(:first-of-type) { margin-top: 22px; }
.faq-section p { color: var(--ink-soft); }

/* Related cards */
.related-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 6px;
}
.related-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--rule);
  background: #FBF8EF;
  text-decoration: none;
  color: inherit;
  min-height: 44px;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.related-card:hover,
.related-card:focus-visible {
  border-color: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(22, 40, 30, 0.12);
}
.related-card img {
  width: 72px;
  height: 54px;
  object-fit: cover;
  flex-shrink: 0;
}
.related-card-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.related-card-title {
  font-weight: 700;
  color: var(--green-deep);
  font-size: 0.98rem;
}
.related-card-desc {
  font-size: 0.84rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* CTA */
.cta-section {
  background: var(--green-deep);
  color: #F4EFE1;
  padding: 34px 26px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
.cta-section h2 {
  margin: 0;
  font-size: 1.4rem;
  color: #FBF8EF;
}
.cta-section p {
  margin: 0;
  color: #D9DECF;
  max-width: 48ch;
}
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 12px 32px;
  background: var(--accent-gold);
  color: var(--green-deep);
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  margin-top: 2px;
}
.cta-button:hover,
.cta-button:focus {
  background: #C39B4C;
}

/* Footer */
footer {
  background: var(--ink);
  color: #CFC9B5;
  padding: 26px 20px;
}
footer address {
  max-width: 900px;
  margin: 0 auto;
  font-style: normal;
  font-size: 0.85rem;
  line-height: 1.8;
}
footer address a {
  color: #D8C79A;
  font-weight: 700;
}

/* Breakpoints */
@media (min-width: 480px) {
  .gallery-grid { max-width: 620px; }
}

@media (min-width: 768px) {
  .hero-bleed { height: 68vh; }
  .issue { padding: 56px 20px 70px; gap: 42px; }
  .related-cards { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); max-width: 760px; }
}

@media (min-width: 1024px) {
  .issue { max-width: 720px; }
}

@media (max-width: 480px) {
  .masthead-nav a { font-size: 0.82rem; padding: 10px 6px; }
  .hero-bleed-overlay { padding: 20px 16px 26px; }
  .column h2 { font-size: 1.3rem; }
  .pull-quote { font-size: 1.15rem; padding-left: 18px; }
}
