/* tolgadizmen.com, page layout on top of the Tolga Dizmen design system (ds/styles.css).
   Every colour, size and radius comes from the system's tokens; nothing is hard-coded here. */

html { scroll-behavior: smooth; }

h1 { font-size: var(--fs-display); text-wrap: pretty; }
h2 { font-size: var(--fs-h2); text-wrap: pretty; }
h3 { font-size: var(--fs-h3); }

.wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* brand */
.brand { display: inline-flex; align-items: center; gap: var(--sp-3); color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand span { font-family: var(--font-display); font-weight: var(--fw-medium); font-size: 22px; line-height: 1; letter-spacing: var(--ls-display); white-space: nowrap; }
.brand.small span { font-family: var(--font-body); font-weight: var(--fw-regular); font-size: var(--fs-small); letter-spacing: 0; color: var(--ink-soft); white-space: normal; }
.mark { height: 22px; width: auto; display: block; fill: var(--ink); flex: 0 0 auto; }
.brand.small .mark { height: 20px; }

/* top bar: sticky, 64px, bg at 92% with a light blur, 1px line */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--topbar-h);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: var(--border-w) solid var(--line);
}
.topbar .wrap { height: 100%; display: flex; align-items: center; gap: var(--sp-8); }
.nav { margin-left: auto; display: flex; align-items: center; gap: var(--sp-8); }
.nav a:not(.btn) { font-size: var(--fs-small); line-height: var(--lh-ui); color: var(--ink-soft); transition: color .15s ease; }
.nav a:not(.btn):hover { color: var(--accent); }

/* buttons: primary accent, ghost 1px accent border; 6px radius; 150ms colour transition only */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font: var(--fw-medium) var(--fs-small)/var(--lh-ui) var(--font-body);
  padding: 12px 22px;
  border-radius: var(--radius-button);
  border: var(--border-w) solid transparent;
  background: var(--action-primary-bg);
  color: var(--action-primary-fg);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--action-primary-bg-hover); color: var(--action-primary-fg); }
.btn.small { padding: 9px 16px; }
.btn.ghost { background: transparent; color: var(--action-ghost-fg); border-color: var(--action-ghost-border); }
.btn.ghost:hover { background: var(--action-ghost-bg-hover); color: var(--action-ghost-fg); }

/* sections: 88px rhythm; separated by a line or by switching cream, never both */
section { padding: var(--section-y) 0; background: var(--bg); }
section + section:not(.alt) { border-top: var(--border-w) solid var(--line); }
.alt + section:not(.alt), section.alt { border-top: 0; }
.alt { background: var(--bg-alt); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-ui);
  color: var(--text-eyebrow);
  margin-bottom: var(--sp-4);
}
.lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-body);
  color: var(--ink-soft);
  max-width: var(--measure-body);
  margin-top: var(--sp-6);
}
.after { margin-top: var(--sp-8); color: var(--ink-soft); }

/* hero: two columns 1.4:1, 4:5 portrait with caption */
.hero .wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--sp-14);
  align-items: center;
}
.hero .lead { margin-top: var(--sp-6); }
.hero .actions { margin-top: var(--sp-8); display: flex; align-items: center; gap: var(--sp-6); flex-wrap: wrap; }

.portrait { margin: 0; min-width: 0; }
.portrait .photo {
  aspect-ratio: 4 / 5;
  max-width: 340px;
  width: 100%;
  border-radius: var(--radius-photo);
  overflow: hidden;
  background: var(--bg-alt);
  border: var(--border-w) solid var(--line);
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  font-size: var(--fs-xs);
}
.portrait .photo:empty::after { content: "Portrait, 4:5"; }
.portrait .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait figcaption { max-width: 340px; margin-top: var(--sp-3); font-size: var(--fs-small); line-height: var(--lh-ui); color: var(--ink-soft); }
.portrait figcaption strong { color: var(--ink); }

/* the problem: three level cards */
.levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-6); margin-top: var(--sp-10); }
.level { border: var(--border-w) solid var(--line); border-radius: var(--radius-card); padding: 26px; background: var(--bg); }
.level .num { font-family: var(--font-display); font-weight: var(--fw-medium); font-size: 32px; line-height: 1; color: var(--line); margin-bottom: var(--sp-3); font-feature-settings: var(--num-lining); }
.level.on { border-color: var(--border-strong); }
.level.on .num { color: var(--accent); }
.level h3 { margin-bottom: var(--sp-2); }
.level p { color: var(--ink-soft); }

/* the program: numbered steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: var(--sp-10) 0 0; }
.steps li { display: grid; grid-template-columns: 64px 1fr; gap: var(--sp-6); padding: 26px 0; border-top: var(--border-w) solid var(--line); }
.steps li:last-child { border-bottom: var(--border-w) solid var(--line); }
.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  font-size: 26px;
  line-height: 1.2;
  color: var(--accent);
  font-feature-settings: var(--num-lining);
}
.steps h3 { margin-bottom: var(--sp-1); }
.steps .when { color: var(--accent); font-size: var(--fs-xs); font-weight: var(--fw-semibold); line-height: var(--lh-ui); letter-spacing: 0.04em; margin-bottom: var(--sp-2); }
.steps p { color: var(--ink-soft); }

/* rules: the callout, 3px accent bar, 20px gap */
.rules { margin-top: var(--sp-10); display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
.rule { border-left: var(--callout-bar-w) solid var(--rule-callout); padding: var(--sp-1) 0 var(--sp-1) var(--callout-bar-gap); }
.rule strong { display: block; font-family: var(--font-display); font-weight: var(--fw-medium); font-size: var(--fs-h3); line-height: var(--lh-display); margin-bottom: var(--sp-1); }
.rule p { color: var(--ink-soft); }

.note { margin-top: var(--sp-14); border: var(--border-w) solid var(--line); border-radius: var(--radius-card); padding: var(--sp-6) 28px; background: var(--bg-alt); }
.note p { color: var(--ink-soft); }

/* what gets built: cards */
.examples { list-style: none; padding: 0; margin: var(--sp-10) 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-6); }
.examples li { background: var(--bg); border: var(--border-w) solid var(--line); border-radius: var(--radius-card); padding: var(--sp-6); }
.examples strong { display: block; font-family: var(--font-display); font-weight: var(--fw-medium); font-size: var(--fs-h3); line-height: var(--lh-display); margin-bottom: var(--sp-2); }
.examples p { color: var(--ink-soft); }

/* quotes */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-6); margin-top: var(--sp-10); }
.quotes blockquote { margin: 0; padding: 28px; border: var(--border-w) solid var(--line); border-radius: var(--radius-card); background: var(--bg-alt); display: flex; flex-direction: column; justify-content: space-between; }
.quotes blockquote p { font-family: var(--font-display); font-weight: var(--fw-medium); font-size: 19px; line-height: 1.45; letter-spacing: var(--ls-display); margin-bottom: var(--sp-6); }
.quotes cite { font-style: normal; color: var(--ink-soft); font-size: var(--fs-small); line-height: var(--lh-ui); }
.quotes cite strong { color: var(--ink); display: block; }

/* about */
.about .wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: var(--sp-14); align-items: start; }
.about .facts { list-style: none; padding: 0; margin: var(--sp-6) 0 0; border-top: var(--border-w) solid var(--line); }
.about .facts li { padding: var(--sp-3) 0; border-bottom: var(--border-w) solid var(--line); font-size: var(--fs-small); line-height: var(--lh-ui); color: var(--ink-soft); display: grid; grid-template-columns: 110px 1fr; gap: var(--sp-3); }
.about .facts li span { color: var(--ink); font-weight: var(--fw-semibold); font-feature-settings: var(--num-tabular); }
.about .text { max-width: var(--measure-body); }
.about .text p + p { margin-top: var(--sp-6); }

/* writing */
.posts { list-style: none; padding: 0; margin: var(--sp-8) 0 0; }
.posts li { padding: var(--sp-6) 0; border-top: var(--border-w) solid var(--line); }
.posts li:last-child { border-bottom: var(--border-w) solid var(--line); }
.posts a { color: var(--ink); font-family: var(--font-display); font-weight: var(--fw-medium); font-size: var(--fs-h3); line-height: var(--lh-display); transition: color .15s ease; }
.posts a:hover { color: var(--accent); }
.posts p { margin-top: var(--sp-1); color: var(--ink-soft); font-size: var(--fs-small); max-width: var(--measure-body); }
.writing .more { margin-top: 28px; display: flex; gap: 28px; flex-wrap: wrap; font-size: var(--fs-small); }

/* contact */
.contact .wrap { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-14); align-items: start; }
.contact .or { color: var(--ink-soft); margin: 28px 0 var(--sp-3); }
.form { display: flex; flex-direction: column; gap: var(--sp-4); }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-xs); font-weight: var(--fw-semibold); line-height: var(--lh-ui); color: var(--ink); }
.form input, .form textarea {
  font: var(--fw-regular) var(--fs-small)/var(--lh-ui) var(--font-body);
  color: var(--ink);
  background: var(--bg);
  border: var(--border-w) solid var(--line);
  border-radius: var(--radius-button);
  padding: 12px 14px;
  width: 100%;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form textarea { resize: vertical; }
.form button { align-self: flex-start; }
.form button:disabled { cursor: default; }
.form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { color: var(--ink-soft); font-size: var(--fs-small); min-height: 1.4em; }
.form-status:empty { display: none; }

/* footer: 1px top line, ink-soft 15px */
footer { border-top: var(--border-w) solid var(--line); }
footer .wrap { padding: var(--sp-8) var(--gutter); display: flex; flex-wrap: wrap; gap: var(--sp-6); align-items: center; font-size: var(--fs-small); line-height: var(--lh-ui); color: var(--ink-soft); }
footer nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: var(--sp-6); }
footer nav a { color: var(--ink-soft); transition: color .15s ease; }
footer nav a:hover { color: var(--accent); }

@media (max-width: 820px) {
  section { padding: var(--section-y-mobile) 0; }
  .hero .wrap, .about .wrap, .contact .wrap, .levels, .quotes, .examples, .rules { grid-template-columns: 1fr; }
  .portrait .photo { max-width: 220px; }
  .nav a:not(.btn) { display: none; }
  .about .facts li { grid-template-columns: 1fr; gap: 2px; }
  footer nav { margin-left: 0; }
}
