:root {
  color-scheme: light;
  --ink: #102625;
  --deep: #0d2222;
  --cream: #f9f3e8;
  --paper: #f5e8d2;
  --gold: #e4b66d;
  --gold-dark: #865921;
  --border: #b48d61;
  --muted: #655e53;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 1rem/1.5 var(--sans); }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #a76e1f; outline-offset: 4px; }
img, svg { display: block; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; }
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); letter-spacing: -.045em; line-height: 1.04; }
.wrap { width: min(100% - clamp(2rem, 7vw, 7rem), 88rem); margin-inline: auto; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: fixed; top: .5rem; left: .5rem; z-index: 5; transform: translateY(-150%); background: var(--cream); padding: .65rem 1rem; border-radius: .4rem; }
.skip:focus { transform: none; }

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 2;
  background: var(--deep);
  color: var(--cream);
  border-bottom: 1px solid #e4b66d83;
}
.header-row { display: flex; min-height: 4rem; justify-content: space-between; align-items: center; gap: 1rem; }
.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  padding: .2rem .42rem;
  border: 1px solid #e4b66d83;
  border-radius: .5rem;
  background: var(--cream);
}
.brand img { width: 9.5rem; height: auto; }
.nav, .footer-nav { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem clamp(1.1rem, 3vw, 2.75rem); }
.nav a, .footer-nav a, .footer-nav button {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-family: var(--serif);
  font-size: 1.08rem;
}
.nav a:hover, .footer-nav a:hover, .footer-nav button:hover { color: var(--gold); }
.menu-toggle { display: none; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; background: transparent; border: 1px solid #e4b66d65; border-radius: .5rem; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(ellipse at 55% 20%, #173133 0, var(--deep) 64%);
  color: var(--cream);
}
.hero-art {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: 68%;
  height: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 22%);
  mask-image: linear-gradient(to right, transparent, black 22%);
}
.hero-content { padding-block: clamp(2.25rem, 4.4vw, 4.5rem); position: relative; }
.eyebrow { margin-bottom: .5rem; color: #efc278; font-size: .83rem; font-weight: 650; letter-spacing: .36em; text-transform: uppercase; }
.hero h1 { max-width: 34rem; font-size: clamp(2.65rem, 5.35vw, 5rem); letter-spacing: -.05em; line-height: .98; text-wrap: balance; }
.hero-description { margin: .8rem 0 1.25rem; max-width: min(43%, 31rem); color: #fff6e8; font-size: clamp(.94rem, 1.35vw, 1.12rem); }
.button {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  padding: .56rem 1rem;
  border: 1px solid #c99850;
  border-radius: .48rem;
  background: linear-gradient(135deg, #f0c689, var(--gold));
  color: var(--deep);
  font-size: .94rem;
  font-weight: 680;
  white-space: nowrap;
  transition: background-color .18s ease, box-shadow .18s ease;
}
.button svg, .card-caption svg { width: 1.28rem; height: 1.28rem; flex: 0 0 auto; }
.button:hover { box-shadow: inset 0 0 0 2rem #fff8e434; }

.categories, .guide {
  padding-block: clamp(1.6rem, 3vw, 2.6rem);
  background: radial-gradient(ellipse at 35% 0%, #fffaf2, var(--cream) 72%);
}
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: .9rem; margin-bottom: 1.15rem; }
.section-heading p { margin-top: .35rem; font-size: clamp(.92rem, 1.65vw, 1.17rem); }
.section-meta { color: var(--muted); white-space: nowrap; font-size: .9rem; }
.category-grid, .guide-grid { display: grid; gap: clamp(.62rem, 1.3vw, 1.1rem); }
.category-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.guide-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: .85rem;
  overflow: hidden;
  background: #f5e8d2;
  text-align: left;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--gold-dark); box-shadow: 0 .45rem 1rem #63481d20; }
.card:focus-visible { outline-offset: 3px; }
.card-art { width: 100%; overflow: hidden; flex: none; }
.category-card .card-art {
  aspect-ratio: 1.63;
  -webkit-mask-image: linear-gradient(black 87%, transparent);
  mask-image: linear-gradient(black 87%, transparent);
}
.guide-card .card-art { aspect-ratio: 2.05; }
.card-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .45rem;
  flex: 1;
  padding: .5rem clamp(.55rem, 1.25vw, 1.1rem) .66rem;
  min-height: 3.45rem;
}
.card-title { font: 600 clamp(.96rem, 1.65vw, 1.43rem)/1.12 var(--serif); letter-spacing: -.025em; }
[data-detail="melek"] .card-title { font-size: clamp(.83rem, 1.3vw, 1.14rem); line-height: 1.16; }
.guide-card .card-caption { padding-block: .65rem .75rem; }

.steps {
  text-align: center;
  padding-block: 1.25rem clamp(1.65rem, 3.3vw, 2.9rem);
  border-block: 1px solid #b48d613b;
  background: radial-gradient(ellipse at 50% 40%, #fbf0db, transparent 72%), #f1dfc1;
}
.ornament { display: flex; align-items: center; justify-content: center; gap: .65rem; margin-bottom: .38rem; color: var(--gold-dark); }
.ornament span { width: min(20vw, 12rem); height: 1px; background: linear-gradient(to right, transparent, #a77439); }
.ornament span:last-child { transform: rotate(180deg); }
.ornament svg { width: 1.75rem; height: 1.75rem; }
.step-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; margin: 1rem 0 0; padding: 0; }
.step-grid li { display: grid; justify-items: center; align-content: start; gap: .32rem; padding: .2rem .7rem; }
.step-grid li + li { border-left: 1px solid #b48d6194; }
.step-icon { width: 4.45rem; height: 4.45rem; color: var(--gold-dark); margin-bottom: .3rem; }
.step-number { background: #edc58d; border-radius: 2rem; padding: .08rem .72rem; font-size: .83rem; color: #4b3118; }
.step-grid h3 { font-weight: 600; font-size: clamp(1.25rem, 2.4vw, 2rem); letter-spacing: -.045em; line-height: 1.12; }
.step-grid p { font-size: clamp(.88rem, 1.3vw, 1rem); }

.site-footer { background: var(--deep); color: var(--cream); }
.footer-top { display: flex; justify-content: space-between; align-items: center; padding-block: 1.2rem; gap: .7rem 2rem; }
.footer-nav button { background: none; border: 0; padding: 0; }
.footer-bottom { display: flex; justify-content: space-between; gap: .75rem; padding-block: .85rem 1.05rem; border-top: 1px solid #e4b66d9a; color: #f0e1cb; font: .92rem/1.4 var(--serif); }

.detail {
  width: min(34rem, 100% - 2rem);
  max-height: min(40rem, 100% - 2rem);
  overflow: auto;
  background: var(--cream);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: 0 1.3rem 5rem #04121165;
  padding: clamp(1.15rem, 4vw, 2rem);
}
.detail::backdrop { background: #0b1919b8; }
body:has(.detail[open]) { overflow: hidden; }
.detail-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin: -.25rem 0 .55rem; }
.detail-label { text-transform: uppercase; letter-spacing: .14em; font-size: .73rem; font-weight: 700; color: var(--gold-dark); }
.detail-close {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
}
.detail-close:hover { background: var(--paper); }
.detail-close svg { width: 1.35rem; height: 1.35rem; }
.detail h2 { font-size: clamp(1.75rem, 5vw, 2.65rem); }
.detail-body { margin-top: .9rem; }
.detail-body p + p { margin-top: .65rem; }
.article-list { display: grid; gap: .45rem; list-style: none; margin: 0; padding: 0; }
.article-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  min-height: 2.8rem;
  width: 100%;
  padding: .5rem .7rem;
  border: 1px solid var(--border);
  border-radius: .45rem;
  background: var(--paper);
  text-align: left;
}
.article-list button:hover { background: #eddbbc; }

@media (max-width: 61rem) {
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-art { width: 71%; }
}
@media (max-width: 44rem) {
  html { scroll-padding-top: 4.35rem; }
  .header-row { flex-wrap: wrap; min-height: 3.7rem; gap: 0; }
  .brand img { width: 8.25rem; }
  .nav { width: 100%; gap: 0 .9rem; }
  .js .menu-toggle { display: inline-flex; }
  .js .nav { display: none; }
  .js .nav.is-open { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: .5rem; }
  .nav a, .footer-nav a, .footer-nav button { font-size: 1rem; }
  .hero { min-height: 25.5rem; }
  .hero-content { padding-block: 1.85rem 9.4rem; }
  .hero h1 { font-size: clamp(2.6rem, 8vw, 4.2rem); }
  .hero-description { max-width: 19rem; }
  .hero-art {
    inset: auto 0 0;
    width: 100%;
    height: 15rem;
    -webkit-mask-image: linear-gradient(180deg, transparent, black 37%);
    mask-image: linear-gradient(180deg, transparent, black 37%);
  }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-grid { grid-template-columns: 1fr; }
  .card-caption { min-height: 3.15rem; }
  .card-title { font-size: clamp(.98rem, 3.45vw, 1.3rem); }
  [data-detail="melek"] .card-title { font-size: clamp(.83rem, 2.8vw, 1.05rem); }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-nav { gap: 0 1.15rem; }
}
@media (max-width: 32rem) {
  .step-grid { grid-template-columns: 1fr; gap: .9rem; margin-top: 1rem; }
  .step-grid li { grid-template-columns: 3.4rem 1fr; grid-template-rows: auto auto; gap: .25rem .75rem; justify-items: start; align-items: center; padding: 0; text-align: left; }
  .step-grid li + li { border-left: 0; border-top: 1px solid #b48d6160; padding-top: .85rem; }
  .step-icon { width: 3.2rem; height: 3.2rem; grid-area: 1 / 1 / 3 / 2; margin: 0; }
  .step-number { display: none; }
  .step-grid h3 { align-self: end; }
  .step-grid p { align-self: start; }
  .guide .button { gap: .35rem; padding-inline: .6rem; font-size: .86rem; }
  .guide .button svg, .card-caption svg { width: 1.05rem; height: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
