/* Portre — Mithat Can Turan personal site */

/* ── Reset & base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --clay:      #b84a2e;
  --clay-dark: #8c3419;
  --peach:     #eeb694;
  --cream:     #fff6e9;
  --ink:       #2e211a;
  --muted:     #6b5549;
  --line:      rgba(46, 33, 26, 0.14);
  --serif: "Fraunces", Georgia, serif;
  --sans:  "Karla", system-ui, -apple-system, sans-serif;
  --ease:  cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 28px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 64px;
  padding-right: 64px;
}

h1, h2, .quote, .footer-cta {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 100;
  font-weight: 400;
}

.quiet-link { text-decoration: none; }
.quiet-link:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

.text-link {
  color: var(--clay);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 160ms var(--ease);
}
.text-link:hover { color: var(--clay-dark); }

/* ── Cover ─────────────────────────────────────────────── */
.cover { background: var(--clay); color: var(--cream); }

.cover-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  padding-top: 32px;
  font-size: 17px;
}

.cover-grid { display: flex; align-items: flex-end; gap: 32px; }
.cover-text { flex: 1 1 auto; min-width: 0; padding: 72px 0 96px; }

h1 { font-size: 120px; line-height: 116px; letter-spacing: -0.015em; }

.cover-lead {
  max-width: 560px;
  margin-top: 32px;
  font-size: 24px;
  line-height: 34px;
  text-wrap: pretty;
}

.cover-status { margin-top: 16px; }

.cover-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 20px;
  border-radius: 24px;
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 160ms var(--ease), transform 160ms var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-main { background: var(--cream); color: var(--clay); }
.btn-main:hover { background: #ffffff; }
.btn-alt { box-shadow: inset 0 0 0 1.5px var(--cream); color: var(--cream); }
.btn-alt:hover { background: rgba(255, 246, 233, 0.14); }

/* The photo's own edges cut the shoulders straight: the arch makes that cut look intended. */
.cover-frame {
  flex: 0 0 auto;
  width: 440px;
  height: 568px;
  padding-top: 16px;
  overflow: hidden;
  border-radius: 220px 220px 0 0;
  background: var(--peach);
}
.cover-frame img { width: 100%; }

/* ── Two equal columns ─────────────────────────────────── */
.columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
  gap: 64px;
}
.columns-first { padding-top: 80px; padding-bottom: 64px; }
.columns-last { padding-bottom: 96px; }

/* Anchored sections clear the top edge of the window a little. */
.columns > div { scroll-margin-top: 24px; }

h2 { margin-bottom: 24px; font-size: 48px; line-height: 56px; letter-spacing: -0.01em; }

.job { padding: 16px 0; border-top: 1px solid var(--line); }
.job h3 { font-size: 20px; line-height: 28px; font-weight: 500; }
.job-meta { font-size: 16px; line-height: 24px; color: var(--muted); }
.job p { margin-top: 8px; text-wrap: pretty; }

.made-row { display: block; padding: 16px 0; border-top: 1px solid var(--line); text-decoration: none; }
.made-name { display: block; font-size: 20px; line-height: 28px; font-weight: 500; transition: color 160ms var(--ease); }
.made-line { display: block; color: var(--muted); text-wrap: pretty; }
.made-row:hover .made-name { color: var(--clay); }

/* ── Gallery ───────────────────────────────────────────── */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 16px;
  padding-bottom: 80px;
}
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; }

/* ── Writing and about ─────────────────────────────────── */
.quote {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 32px;
  line-height: 42px;
  text-wrap: pretty;
}
.quote-source { margin-top: 16px; color: var(--muted); }

.prose { padding-top: 16px; border-top: 1px solid var(--line); }
.prose p { text-wrap: pretty; }
.prose p + p { margin-top: 12px; }

/* ── Footer ────────────────────────────────────────────── */
.site-footer { background: var(--clay); color: var(--cream); }
.site-footer .wrap { padding-top: 80px; padding-bottom: 48px; }

.footer-cta {
  max-width: 880px;
  font-size: 72px;
  line-height: 80px;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.footer-email { margin-top: 24px; font-size: 24px; line-height: 32px; overflow-wrap: anywhere; }
.footer-email a { text-decoration-thickness: 1px; text-underline-offset: 4px; }

.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 48px; font-size: 17px; }

/* ── Small screens ─────────────────────────────────────── */
@media (max-width: 960px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .cover-grid { flex-direction: column; align-items: stretch; gap: 0; }
  .cover-text { padding: 40px 0 24px; }
  .cover-frame { width: min(100%, 340px); height: 440px; align-self: center; border-radius: 170px 170px 0 0; }
  h1 { font-size: 64px; line-height: 64px; }
  h2 { font-size: 36px; line-height: 44px; }
  .footer-cta { font-size: 44px; line-height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .text-link, .made-name { transition: none; }
}
