/* erdemyilmaz.me
   Left sidebar with monogram and stacked navigation; white cards on a grey page.
   Plain CSS, no build step, no external fonts. */

:root {
  --bg: #e9ebee;
  --card: #ffffff;
  --fg: #1a1a1a;
  --muted: #5a5f66;
  --line: #d3d6da;
  --accent: #e0455a;
  --accent-soft: #fbe9ec;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 6px 20px rgba(0, 0, 0, 0.05);
  --sidebar: 15rem;
  --display: "Bahnschrift", "Oswald", "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161a;
    --card: #1f2227;
    --fg: #e8e8e4;
    --muted: #a3a8b0;
    --line: #33373d;
    --accent: #ff6b7d;
    --accent-soft: #3a2228;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 20px rgba(0, 0, 0, 0.3);
  }
}

* { box-sizing: border-box; }
html { font-size: 17px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--serif);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: var(--accent); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Layout */
.layout { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.monogram { display: block; width: 4rem; height: 4rem; color: var(--fg); }
.monogram svg { width: 100%; height: 100%; display: block; }
.site-nav { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; }
.site-nav a {
  font-family: var(--display);
  font-stretch: condensed;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg);
  padding-bottom: 0.15rem;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--line); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--fg); }

main { padding: 2rem 2rem 4rem; max-width: 62rem; }
main > .intro { max-width: 40rem; margin: 0 0 1.5rem; }
main > .intro h1 { margin: 0 0 0.5rem; }

/* Type */
h1, h2, .card h3 {
  font-family: var(--display);
  font-stretch: condensed;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.1;
}
h1 { font-size: 2.2rem; margin: 0 0 1rem; }
h2 { font-size: 1.4rem; margin: 2.5rem 0 1rem; }
.lead { font-size: 1.1rem; color: var(--muted); }
p { max-width: 38rem; }
.small { font-size: 0.9rem; color: var(--muted); }

/* Cards */
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; }
.card {
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 2.75rem 3rem;
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 2.25rem;
  align-items: start;
}
.card.wide { grid-template-columns: minmax(0, 1fr); }
.tile { width: 9rem; height: 9rem; display: block; }
.tile svg { width: 100%; height: 100%; display: block; }
.card h3 { font-size: 1.75rem; margin: 0 0 0.6rem; }
.card h3 a { color: var(--fg); text-decoration: none; }
.card h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.card p { margin: 0 0 0.6rem; }
.card .more {
  font-family: var(--display);
  font-stretch: condensed;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent);
}
.card .more:hover { text-decoration: underline; }
.card .tag {
  display: inline-block;
  font-family: var(--display);
  font-stretch: condensed;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
  vertical-align: middle;
  margin-left: 0.5rem;
}

/* Prose pages */
.prose { background: var(--card); box-shadow: var(--shadow); padding: 2.75rem 3rem; max-width: 48rem; }
.prose h1 { margin-top: 0; }
.prose h2 { margin-top: 2rem; }

/* Footer */
.site-footer { grid-column: 1 / -1; padding: 1.5rem 2rem; font-size: 0.85rem; color: var(--muted); }
.site-footer p { margin: 0.2rem 0; max-width: none; }

/* Responsive */
@media (max-width: 800px) {
  html { font-size: 16px; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; height: auto; flex-direction: row; justify-content: space-between; padding: 1.25rem 1.25rem 0; }
  .monogram { width: 3rem; height: 3rem; }
  .site-nav { flex-direction: row; gap: 1.2rem; }
  main { padding: 1.5rem 1rem 3rem; }
  .card, .prose { padding: 1.75rem 1.5rem; }
  .card { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .card h3 { font-size: 1.45rem; }
}

@media print {
  .sidebar { display: none; }
  .layout { display: block; }
  body { background: #fff; color: #000; }
  .card, .prose { box-shadow: none; border: 1px solid #ccc; }
  a { color: #000; }
}
