/* Etem Ozdemirci: personal site. Every value comes from ~/Projects/eo-brand/design-system/tokens.json.
   One deviation: running text is 16/24 on screen, not the print-tuned 13/19 `body` (see ../ISA.md, Decisions). */

@font-face {
  font-family: "Outfit";
  src: url("fonts/Outfit-VF.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono-VF.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --ink: #2a2017;
  --paper: #f8f4eb;
  --accent-light: #e0a54a;
  --grey-line: #dacdb6;
  --grey-text: #6e6152;

  --sans: "Outfit", "Futura", "Century Gothic", sans-serif;
  --mono: "JetBrains Mono", "Menlo", "Consolas", monospace;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-18: 72px;

  --measure: 640px;
}

* { box-sizing: border-box; border-radius: 0; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }

a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--grey-line); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--ink); }

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 var(--space-4); }

/* Header: wordmark top left, nav as labels */
.site-header { padding: var(--space-12) 0 var(--space-8); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-6); }
.logo { display: block; line-height: 0; }
.logo img { width: 200px; height: auto; display: block; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-6); }
nav a, .label {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-text);
  text-decoration: none;
}
nav a:hover, nav a[aria-current="page"] { color: var(--ink); }

main { padding-bottom: var(--space-18); }

.back { display: inline-block; margin-bottom: var(--space-8); }

h1.display {
  font-size: 40px;
  line-height: 44px;
  font-weight: 500;
  margin: 0 0 var(--space-8);
  letter-spacing: -0.01em;
}
h2 {
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
  margin: var(--space-12) 0 var(--space-4);
}
p { margin: 0 0 var(--space-4); }
.lead { font-size: 18px; line-height: 28px; }
.muted { color: var(--grey-text); }
.mono, time { font-family: var(--mono); font-size: 13px; line-height: 19px; }

hr { border: 0; border-top: 1px solid var(--grey-line); margin: var(--space-8) 0; }

/* Lists separated by hairlines, never boxes */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--grey-line); }
.rows > li { border-bottom: 1px solid var(--grey-line); padding: var(--space-4) 0; }
.rows .row-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--space-1) var(--space-4); }
.rows h3 { font-size: 16px; line-height: 24px; font-weight: 500; margin: 0; }
.rows .role { color: var(--grey-text); margin: 0 0 var(--space-1); }
.rows p { margin: 0; }
.rows .tags { margin-top: var(--space-2); }

/* Home: the three page links */
.links { list-style: none; margin: var(--space-8) 0 0; padding: 0; border-top: 1px solid var(--grey-line); }
.links li { border-bottom: 1px solid var(--grey-line); }
.links a { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-1) var(--space-4); padding: var(--space-4) 0; text-decoration: none; }
.links a:hover .name { text-decoration: underline; text-underline-offset: 3px; }
.links .name { font-weight: 500; }
.links .what { color: var(--grey-text); }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: var(--space-2) var(--space-6); margin: 0 0 var(--space-8); }
.facts dt { padding-top: 5px; }
.facts dd { margin: 0; }

/* Footer: reversed, on ink */
.site-footer { background: var(--ink); color: var(--paper); padding: var(--space-12) 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--space-6); }
.site-footer .rule { width: 48px; border-top: 2px solid var(--accent-light); margin: 0 0 var(--space-4); }
.site-footer img { width: 160px; height: auto; display: block; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); }
.site-footer a { color: var(--paper); text-decoration-color: var(--grey-text); }
.site-footer a:hover { text-decoration-color: var(--paper); }

@media (max-width: 520px) {
  .site-header { padding: var(--space-8) 0 var(--space-6); }
  .logo img { width: 160px; }
  h1.display { font-size: 32px; line-height: 36px; }
  nav ul { gap: var(--space-4); }
}
