/* valeriocosta — everything-site design system */
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('fonts/IBMPlexMono-Regular.woff2') format('woff2');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('fonts/IBMPlexMono-Bold.woff2') format('woff2');
  font-weight: 700; font-display: swap;
}

@font-face {
  font-family: 'Host Grotesk'; font-weight: 400; font-display: swap;
  src: url('fonts/HostGrotesk-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Host Grotesk'; font-weight: 400; font-display: swap;
  src: url('fonts/HostGrotesk-ext-400.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Host Grotesk'; font-weight: 600 700; font-display: swap;
  src: url('fonts/HostGrotesk-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Host Grotesk'; font-weight: 600 700; font-display: swap;
  src: url('fonts/HostGrotesk-ext-600.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #F7F5EE;
  --ink: #1A1A17;
  --accent: #0358F7;
  --sans: 'Host Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;
}

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

body {
  margin: 0 auto;
  padding: 24px 16px 48px;
  max-width: 600px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

h1, h2, h3 { font-size: 1em; margin: 48px 0 8px; }
h1 { font-family: var(--mono); font-weight: 700; font-size: 1.6em; letter-spacing: -0.01em; color: var(--accent); }
h2 { border-bottom: 1px solid var(--ink); padding-bottom: 4px; }

a { color: var(--ink); text-decoration: underline dotted 1px; text-underline-offset: 3px; transition: color 150ms, text-decoration-color 150ms; }
a:hover { color: var(--accent); text-decoration: underline solid 1px; }

hr { border: 0; border-top: 1px solid var(--ink); margin: 48px 0; }

.meta { font-family: var(--mono); font-size: 0.75em; letter-spacing: 0.02em; }

/* header */
.site-header {
  display: flex; flex-wrap: wrap; gap: 8px 16px;
  justify-content: space-between; align-items: baseline;
  border-bottom: 1px solid var(--ink); padding-bottom: 8px;
}
.site-header h1 { margin: 0; }

.site-nav { font-family: var(--mono); font-size: 0.75em; }
.site-nav a { text-decoration: none; padding: 2px 4px; }
.site-nav a:hover { color: var(--accent); }
.site-nav .nav-current { background: var(--ink); color: var(--paper); }
.site-nav .nav-current:hover { background: var(--ink); color: var(--paper); }

/* links row */
.links-row { font-family: var(--mono); font-size: 0.75em; margin: 24px 0; }

/* featured card — the ONLY dashed/crop-mark element */
.card {
  position: relative;
  border: 1px dashed var(--ink);
  padding: 16px;
  margin: 24px 0;
}
.card::before, .card::after {
  content: ''; position: absolute; width: 11px; height: 11px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 11px 1px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1px 11px no-repeat;
}
/* centred on the 1px border corner */
.card::before { top: -6px; left: -6px; }
.card::after { bottom: -6px; right: -6px; }
.card h3 { margin: 0 0 4px; }
.card p { margin: 8px 0 0; }

/* project table */
.project-table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.project-table th {
  font-family: var(--mono); font-size: 0.75em; font-weight: 700;
  text-align: left; text-transform: uppercase;
}
.project-table th, .project-table td {
  border: 1px solid var(--ink); padding: 8px; vertical-align: top;
}

/* now-page entry */
.entry { border-bottom: 1px solid var(--ink); padding-bottom: 24px; margin-bottom: 24px; }
.entry:last-child { border-bottom: 0; }

/* footer */
.site-footer {
  border-top: 1px solid var(--ink);
  margin-top: 48px; padding-top: 8px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 0.75em;
}
.stamp svg { display: block; width: 20px; height: 20px; stroke: var(--accent); fill: none; stroke-width: 1.5; }

@media (max-width: 480px) {
  .project-table, .project-table thead, .project-table tbody,
  .project-table th, .project-table td, .project-table tr { display: block; }
  .project-table thead { display: none; }
  .project-table td { border-bottom: 0; }
  .project-table tr { border-bottom: 1px solid var(--ink); margin-bottom: 16px; }
}

/* ascii margin field (js/glyphs.js) */
.glyph-field {
  position: fixed; top: 0; bottom: 0; z-index: -1;
  display: grid; grid-auto-rows: 22px; overflow: hidden;
  font-family: var(--mono); font-size: 13px; line-height: 22px; text-align: center;
  color: color-mix(in srgb, var(--ink) 14%, transparent); pointer-events: none; user-select: none;
}
.glyph-field-left { left: 0; }
.glyph-field-right { right: 0; }
.glyph-field span { transition: color 400ms; }
.glyph-field .glyph-on { font-weight: 700; color: var(--accent); transition: color 80ms; }

/* buttons (note form) */
.tile {
  font-family: var(--mono); font-size: 0.8em; color: var(--ink); background: var(--paper);
  border: 1px solid var(--ink); padding: 4px 10px; cursor: grab;
}
.tile:hover, .tile:focus-visible { color: var(--accent); border-color: var(--accent); }

.note-form label { display: block; margin: 12px 0 0; font-family: var(--mono); font-size: 0.75em; }
.note-form textarea, .note-form input[type=email] {
  display: block; width: 100%; margin-top: 4px; font: inherit; font-family: var(--sans); font-size: 1.3em;
  background: var(--paper); color: var(--ink); border: 1px solid var(--ink); padding: 8px;
}
.note-form .tile { margin-top: 12px; cursor: pointer; }
.note-form .hp { display: none; }

/* Education entries: small logo mark, title, dates */
.edu { margin: 0 0 24px; }
.edu-logo { display: block; height: 22px; width: auto; margin-bottom: 8px; }
.edu p { margin: 4px 0 0; }
.edu-logo-square { height: 32px; }

/* landing page (index.html): full-window glyph field with a centred box */
.glyph-field-full { left: 0; right: 0; }
body.landing {
  max-width: none; min-height: 100vh; padding: 16px;
  display: grid; place-items: center;
}
.landing-box {
  background: var(--paper); border: 1px solid var(--ink);
  padding: 32px 40px; text-align: center; max-width: 100%;
}
.landing-box h1 { margin: 0 0 16px; }
.landing-nav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px;
  font-family: var(--mono); font-size: 13px;
}
.landing-nav a { color: var(--ink); text-decoration: none; }
.landing-nav a:hover { color: var(--accent); }

/* wave mode: glyphs swell and turn blue with the wave height (js/glyphs.js) */
.glyph-field span { transition: color 600ms, transform 600ms; }
.glyph-field .wl1 { color: color-mix(in srgb, var(--accent) 30%, transparent); transform: scale(1.1); }
.glyph-field .wl2 { color: color-mix(in srgb, var(--accent) 55%, transparent); transform: scale(1.25); }
.glyph-field .wl3 { color: color-mix(in srgb, var(--accent) 80%, transparent); transform: scale(1.4); }
.glyph-field .wl4 { color: var(--accent); font-weight: 700; transform: scale(1.6); }
