/* ==========================================================================
   Büşra Nur Yüksel — main.css
   Character: a printed literary journal. Warm paper, plum-tulip accent,
   a serif masthead, hairline rules and an arched tulip frame.
   ========================================================================== */

/* ---------------------------------- Tokens ------------------------------- */
:root {
  /* Color */
  --canvas:      #faf6f1;
  --surface:     #fffdfa;
  --ink:         #2b2226;
  --ink-mute:    #75676c;
  --accent:      #9c2f6c;
  --accent-ink:  #ffffff;
  --accent-soft: #f4e4ec;
  --leaf:        #4f7a4a;
  --hairline:    #e7dcd3;
  --focus:       #9c2f6c;

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --size-body:    17px;

  /* Space */
  --space-xs:   8px;
  --space-sm:   12px;
  --space-md:   16px;
  --space-lg:   24px;
  --space-xl:   32px;
  --space-xxl:  48px;
  --space-huge: 96px;

  /* Shape */
  --radius-sm:   6px;
  --radius-md:   14px;
  --radius-pill: 999px;

  /* Layout */
  --column: 1120px;
  --measure: 680px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------------------------------- Reset -------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, dl, dd, ol, ul, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ------------------------------- Typography ------------------------------ */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-optical-sizing: auto;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.display em { font-style: italic; color: var(--accent); }

.display--xl { font-size: clamp(44px, 6.4vw, 84px); line-height: 1.02; }
.display--lg { font-size: clamp(34px, 4.4vw, 54px); line-height: 1.08; }
.display--md { font-size: clamp(26px, 3vw, 34px);   line-height: 1.18; }

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.lead {
  max-width: 46ch;
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink-mute);
}

.link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* --------------------------------- Button -------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 13px 26px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.btn:hover { background: #7f2457; border-color: #7f2457; }

.btn--ghost {
  background: transparent;
  color: var(--accent);
}
.btn--ghost:hover { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }

.btn--block { width: 100%; }

/* ---------------------------------- Nav ---------------------------------- */
.nav {
  border-bottom: 1px solid var(--hairline);
  background: var(--canvas);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  max-width: var(--column);
  margin: 0 auto;
  padding: var(--space-lg) var(--space-lg);
}

.nav__brand {
  font-family: var(--font-display);
  font-size: 26px;
  font-style: italic;
  text-decoration: none;
  white-space: nowrap;
}
.nav__brand span { color: var(--accent); }

.nav__tag {
  margin-left: var(--space-xs);
  padding: 2px 10px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  vertical-align: middle;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav__link {
  font-size: 14px;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--ink-mute);
  transition: color 0.2s var(--ease);
}
.nav__link:hover,
.nav__link[aria-current="page"] { color: var(--ink); }
.nav__link[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 8px;
}

.nav__toggle {
  display: none;
  padding: 8px 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  background: transparent;
  font-size: 13px;
  letter-spacing: 0.08em;
  cursor: pointer;
}

/* --------------------------------- Bands --------------------------------- */
.band {
  padding: var(--space-huge) var(--space-lg);
}
.band--tight { padding-top: var(--space-xxl); padding-bottom: var(--space-xxl); }

.band__inner {
  max-width: var(--column);
  margin: 0 auto;
}

/* ---------------------------------- Hero --------------------------------- */
.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-huge);
  align-items: center;
}

.hero__text > * + * { margin-top: var(--space-lg); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

/* Arched frame — the tulip silhouette */
.arch {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 999px 999px var(--radius-md) var(--radius-md);
  background: var(--accent-soft);
}
.arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.arch__caption {
  margin-top: var(--space-sm);
  font-size: 13px;
  font-style: italic;
  color: var(--ink-mute);
  text-align: center;
}

/* -------------------------------- Section head --------------------------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--ink);
}
.section-head__note { color: var(--ink-mute); font-size: 15px; }

/* ------------------------------- Post list ------------------------------- */
.posts { counter-reset: post; }

.post-row {
  display: grid;
  grid-template-columns: 64px 1fr 200px;
  gap: var(--space-xl);
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--hairline);
  counter-increment: post;
}

.post-row::before {
  content: counter(post, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 28px;
  font-style: italic;
  line-height: 1.1;
  color: var(--accent);
}

.post-row__body > * + * { margin-top: var(--space-sm); }

.post-row__title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
}
.post-row__title a { text-decoration: none; }
.post-row__title a:hover { color: var(--accent); }

.post-row__excerpt { color: var(--ink-mute); max-width: 60ch; }

.post-row__aside {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: flex-start;
}
.post-row__thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 13px;
  color: var(--ink-mute);
}

.tag {
  display: inline-block;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.read-more {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}
.read-more:hover { text-decoration: underline; text-underline-offset: 4px; }

/* -------------------------------- Article -------------------------------- */
.article {
  max-width: var(--measure);
  margin: 0 auto;
}

.article__head {
  text-align: center;
}
.article__head > * + * { margin-top: var(--space-md); }
.article__head .meta { justify-content: center; }

.article__figure {
  margin: var(--space-xxl) 0 0;
  overflow: hidden;
  border-radius: var(--radius-md);
}
.article__figure img { width: 100%; }

.prose {
  margin-top: var(--space-xxl);
  font-size: 19px;
  line-height: 1.8;
}
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
  margin-top: 1.8em;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.25;
}
.prose blockquote {
  margin: 1.6em 0;
  padding: var(--space-md) 0 var(--space-md) var(--space-lg);
  border-left: 2px solid var(--accent);
  font-family: var(--font-display);
  font-size: 24px;
  font-style: italic;
  line-height: 1.5;
  color: var(--accent);
}
.prose > p:first-child::first-letter {
  float: left;
  margin: 0.08em 0.1em 0 0;
  font-family: var(--font-display);
  font-size: 4.2em;
  line-height: 0.8;
  color: var(--accent);
}

.article__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-top: var(--space-xxl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--hairline);
}

/* --------------------------------- About --------------------------------- */
.about {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: var(--space-huge);
  align-items: start;
}
.about__text > * + * { margin-top: var(--space-lg); }
.about__text p { color: var(--ink-mute); }
.about__contact {
  padding-top: var(--space-lg);
  border-top: 1px solid var(--hairline);
}
.about__contact > * + * { margin-top: var(--space-sm); }

/* --------------------------------- Forms --------------------------------- */
.panel {
  max-width: var(--measure);
  margin: 0 auto;
  padding: var(--space-xxl);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.panel--narrow { max-width: 440px; }
.panel > * + *,
.panel__form > * + * { margin-top: var(--space-lg); }

.field > * + * { margin-top: var(--space-xs); }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.input {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--canvas);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.input:focus { border-color: var(--accent); background: var(--surface); outline: none; }
textarea.input { min-height: 260px; resize: vertical; line-height: 1.7; }

.dropzone {
  position: relative;
  padding: var(--space-xl);
  border: 1px dashed var(--accent);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 15px;
  text-align: center;
}
.dropzone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-sm);
}

.notice {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 15px;
}
.notice[hidden] { display: none; }

/* -------------------------------- Footer --------------------------------- */
.footer {
  margin-top: var(--space-huge);
  border-top: 1px solid var(--ink);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-lg);
  max-width: var(--column);
  margin: 0 auto;
  padding: var(--space-xxl) var(--space-lg);
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 34px;
  font-style: italic;
}
.footer__brand span { color: var(--accent); }
.footer__note, .footer__copy { font-size: 14px; color: var(--ink-mute); }

/* ------------------------------ Responsive ------------------------------- */
@media (max-width: 900px) {
  .hero__inner,
  .about { grid-template-columns: 1fr; gap: var(--space-xxl); }
  .hero__media, .about__media { max-width: 420px; }
  .post-row { grid-template-columns: 48px 1fr; }
  .post-row__aside { grid-column: 2; flex-direction: row; align-items: center; }
  .post-row__thumb { width: 120px; }
}

@media (max-width: 720px) {
  :root { --space-huge: 64px; }

  .nav__toggle { display: inline-block; }
  .nav__inner { flex-wrap: wrap; }
  .nav__menu {
    display: none;
    width: 100%;
  }
  .nav.is-open .nav__menu { display: block; }
  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding-top: var(--space-sm);
  }
  .nav__link { display: block; padding: var(--space-sm) 0; font-size: 16px; }

  .field-row { grid-template-columns: 1fr; }
  .panel { padding: var(--space-lg); }
  .post-row { grid-template-columns: 1fr; gap: var(--space-sm); }
  .post-row__aside { grid-column: auto; }
  .section-head { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
