@import url("./type.css");

:root {
  --paper: #faf9f4;
  --white: #fffef9;
  --ink: #193b35;
  --text: #40594f;
  --green: #2f5f50;
  --line: #cdd8cb;
  --sage: #e5ede2;
  --serif: "DM Serif Text", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

* { box-sizing: border-box; }
body { margin: 0; font-size: 1rem; line-height: 1.65; }
a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.08; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.04em; }
h2 { font-size: clamp(2.5rem, 5vw, 4.4rem); }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #9a5f26; outline-offset: 4px; }
.container { width: min(75rem, calc(100% - 3rem)); margin-inline: auto; }
.skip { position: absolute; z-index: 5; top: .5rem; left: .5rem; padding: .5rem 1rem; background: var(--white); transform: translateY(-150%); }
.skip:focus { transform: none; }
.eyebrow { font-size: .875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.header { border-bottom: 1px solid var(--line); background: var(--paper); }
.header-inner { min-height: 5.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.brand { display: inline-flex; gap: .65rem; align-items: center; font-size: 1rem; font-weight: 700; text-decoration: none; letter-spacing: .06em; text-transform: uppercase; line-height: 1.1; }
.brand span span { display: block; font-size: .78rem; letter-spacing: .14em; margin-top: .28rem; }
.brand-mark { border: 1px solid currentColor; position: relative; width: 2.3rem; height: 2.3rem; border-radius: 50%; flex: 0 0 auto; overflow: hidden; }
.brand-mark::before { content: ""; position: absolute; border: 1px solid currentColor; width: .68rem; height: .68rem; left: .74rem; top: .45rem; border-radius: 50%; }
.brand-mark::after { content: ""; position: absolute; width: 2.5rem; height: .65rem; border: 1px solid currentColor; border-radius: 50%; left: -.17rem; top: 1.2rem; box-shadow: 0 .3rem 0 -.04rem var(--paper), 0 .32rem 0 -.02rem currentColor; }
.navigation, .languages { display: flex; align-items: center; gap: 1.8rem; }
.navigation a, .languages a { font-size: .9rem; font-weight: 650; text-decoration: none; }
.navigation a:hover, .languages a:hover { text-decoration: underline; text-underline-offset: .25rem; }
.languages { gap: .2rem; border: 1px solid var(--line); border-radius: 2rem; padding: .2rem; }
.languages a { padding: .3rem .55rem; border-radius: 2rem; }
.languages a[aria-current] { color: var(--white); background: var(--ink); }
.hero { display: grid; grid-template-columns: 1fr .96fr; align-items: stretch; gap: clamp(2rem, 5vw, 5rem); padding-block: 2.75rem 4rem; }
.hero-copy { padding-block: clamp(2rem, 6vw, 6rem); align-self: center; }
.hero h1 { font-size: clamp(3.65rem, 6.3vw, 6.75rem); line-height: .99; margin: 1.25rem 0 1.4rem; }
.hero em { display: block; color: var(--green); font-weight: 400; }
.hero p:not(.eyebrow) { font-size: clamp(1.05rem, 1.6vw, 1.18rem); color: var(--text); max-width: 31rem; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.3rem; margin-top: 1.8rem; }
.primary { display: inline-flex; min-height: 3.2rem; align-items: center; justify-content: center; padding: .55rem 1rem; background: var(--ink); color: var(--white); text-decoration: none; font-weight: 700; border: 1px solid var(--ink); border-radius: .15rem; }
.primary:hover { background: var(--green); }
.anchor { font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: .25rem; }
.hero-media { position: relative; min-height: 32rem; overflow: hidden; border-radius: .25rem; background: #a9b8a7; }
.hero-media img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.hero-media figcaption { position: absolute; bottom: 1rem; left: 1rem; padding: .3rem .8rem; font-size: .875rem; color: var(--white); background: #193b35; }
.section { padding-block: clamp(3.8rem, 8vw, 7rem); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; }
.topics { border-top: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.card { text-decoration: none; display: flex; flex-direction: column; min-height: 14rem; gap: .9rem; background: var(--white); border: 1px solid var(--line); padding: clamp(1.25rem, 3vw, 2.25rem); }
.card:hover { border-color: var(--green); background: var(--sage); }
.card h3 { font: 400 clamp(1.6rem, 2.5vw, 2.2rem)/1.12 var(--serif); letter-spacing: -.025em; }
.card p { color: var(--text); }
.journey { background: var(--sage); }
.stages { padding-left: 0; margin: 2.5rem 0 0; list-style-position: inside; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.stages li { border-top: 1px solid #a2b7a5; padding-top: .8rem; color: var(--text); }
.stages li::marker { font: 400 1.75rem var(--serif); color: var(--ink); }
.stages h3 { font-size: 1.04rem; margin: .5rem 0 .4rem; color: var(--ink); }
.search-label { display: block; font-weight: 700; margin-bottom: .4rem; }
.guide-filter { border: 1px solid #8fa59a; border-radius: .2rem; padding: .65rem .8rem; width: min(30rem, 100%); background: var(--white); color: var(--ink); }
.guide-grid { list-style: none; padding: 0; margin: 1.35rem 0 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 2rem; }
.guide-grid a { display: block; color: var(--ink); font-weight: 650; text-underline-offset: .23rem; border-top: 1px solid var(--line); padding: .7rem 0; }
.guide-grid a:hover { color: var(--green); }
.faq-section { border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2rem; }
.faq-grid details { border-top: 1px solid var(--line); padding: .9rem 0; }
.faq-grid details:last-child { border-bottom: 1px solid var(--line); }
.faq-grid summary { cursor: pointer; font-weight: 700; }
.faq-grid details p { color: var(--text); margin: .6rem 0 .2rem; }
.referral { padding: clamp(2.3rem, 5vw, 4rem); background: var(--ink); color: var(--white); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem; }
.referral h2 { margin: .3rem 0 .75rem; font-size: clamp(2.25rem, 5vw, 3.6rem); }
.referral p:not(.eyebrow) { max-width: 42rem; }
.referral .primary { background: var(--white); color: var(--ink); border-color: var(--white); }
.referral .primary:hover { background: var(--sage); }
.footer { padding-block: 2rem 2.8rem; }
.footer .container { display: flex; align-items: start; justify-content: space-between; gap: 1.5rem; }
.footer p, .footer nav { color: var(--text); font-size: .9rem; }
.footer nav { display: grid; gap: .45rem; }
@media (max-width: 54rem) {
  .navigation { gap: .9rem; }
  .hero { gap: 1.5rem; }
  .hero h1 { font-size: clamp(3.55rem, 7.5vw, 5.25rem); }
  .hero-media { min-height: 27rem; }
  .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 42rem) {
  .container { width: calc(100% - 2rem); }
  .header-inner { flex-wrap: wrap; gap: 0 .75rem; padding: .8rem 0 .65rem; }
  .navigation { order: 1; width: 100%; flex-wrap: wrap; gap: .25rem 1rem; padding-top: .65rem; }
  .hero { display: block; padding-block: 0 2rem; }
  .hero-copy { padding-block: 2.5rem 1.65rem; }
  .hero h1 { font-size: clamp(2.7rem, 10.2vw, 4.75rem); }
  html[lang="tr"] .hero h1 { font-size: clamp(2.35rem, 9.3vw, 4.4rem); }
  .hero-media { min-height: 19rem; max-height: 26rem; height: 66vw; }
  .cards, .guide-grid, .faq-grid, .referral { grid-template-columns: 1fr; }
  .card { min-height: auto; }
  .section-head, .footer .container { align-items: start; flex-direction: column; gap: .65rem; }
  .referral { gap: 1.25rem; justify-items: start; }
}
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } }
