/* The latin-ext files carry "ă" and other Romanian letters. */
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122;
}

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+1E00-1EFF;
}

@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122;
}

@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
  unicode-range: U+0100-02BA, U+1E00-1EFF;
}

:root {
  --paper: #f6f1e7;
  --card: #fffdf8;
  --ink: #1f2a27;
  --muted: #55615c;
  --line: #ddd4c3;
  --green: #1f5c4d;
  --coral: #b8432a;
  --serif: "Fraunces", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --page: min(1080px, 100% - 2.5rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul, dl, dd { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: .5rem 1rem;
  background: var(--green);
  color: var(--card);
}
.skip:focus { top: 1rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .85rem max(1.25rem, (100% - 1080px) / 2);
  background: rgb(246 241 231 / .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { font: 600 1.15rem var(--serif); text-decoration: none; }
.site-header nav { display: flex; gap: 1.5rem; }
.site-header nav a { color: var(--muted); font-size: .95rem; text-decoration: none; }
.site-header nav a:hover { color: var(--ink); }

/* Hero */
.hero { width: var(--page); margin: 0 auto; padding: clamp(3.5rem, 10vw, 6.5rem) 0 4rem; }
.eyebrow { color: var(--coral); font-size: .95rem; font-weight: 600; }
h1 {
  max-width: 14ch;
  margin-top: 1rem;
  font: 500 clamp(2.8rem, 8vw, 5.5rem)/1.05 var(--serif);
  letter-spacing: -.02em;
}
h1 em { color: var(--green); font-style: normal; text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: .06em; text-underline-offset: .12em; }
.lede { max-width: 56ch; margin-top: 1.75rem; color: var(--muted); font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.55; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin-top: 2rem; }
.button {
  padding: .75rem 1.5rem;
  background: var(--green);
  border-radius: 999px;
  color: var(--card);
  font-weight: 600;
  text-decoration: none;
}
.button:hover { background: #174839; }
.button.light { background: var(--card); color: var(--green); }
.button.light:hover { background: var(--paper); }
.text-link { font-weight: 600; text-decoration-color: var(--coral); text-underline-offset: .2em; }

.facts { display: flex; flex-wrap: wrap; gap: 1rem 3rem; margin-top: 3.5rem; color: var(--muted); font-size: .95rem; }
.facts strong { display: block; color: var(--green); font: 500 2.5rem/1.15 var(--serif); }

/* Sections */
.section { width: var(--page); margin: 0 auto; padding: 4rem 0; border-top: 1px solid var(--line); }
h2 { margin-bottom: 2.25rem; font: 500 clamp(1.9rem, 4vw, 2.75rem)/1.15 var(--serif); letter-spacing: -.01em; }

.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }
.principles h3 { font: 600 1.3rem/1.3 var(--serif); }
.principles p { margin-top: .6rem; color: var(--muted); }

/* Kanban board */
.kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; align-items: start; }
.kanban > section { display: grid; gap: .75rem; padding: .9rem; background: #ece5d6; border-radius: 10px; }
.kanban h3 { display: flex; justify-content: space-between; padding: .1rem .25rem; font-size: .95rem; font-weight: 700; }
.kanban h3 span { color: var(--muted); font-weight: 500; }
.card { padding: 1rem 1.1rem; background: var(--card); border-radius: 8px; box-shadow: 0 1px 2px rgb(31 42 39 / .12); }
.card.now { border-left: 4px solid var(--coral); }
.card h4 { margin-top: .2rem; font: 600 1.15rem/1.3 var(--serif); }
.dates { color: var(--muted); font-size: .85rem; }
.company { color: var(--green); font-weight: 600; }
.company + p { margin-top: .5rem; color: var(--muted); font-size: .95rem; line-height: 1.55; }

/* Toolkit */
.toolkit div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1.5rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.toolkit dt { color: var(--muted); font-weight: 600; }

/* Contact */
.contact { padding: 5rem max(1.25rem, (100% - 1080px) / 2); background: var(--green); color: var(--card); }
.contact h2 { max-width: 16ch; margin-bottom: 1rem; font-size: clamp(2.2rem, 6vw, 3.75rem); line-height: 1.08; }
.contact a:focus-visible { outline-color: var(--card); }

.site-footer { padding: 1.5rem max(1.25rem, (100% - 1080px) / 2); color: var(--muted); font-size: .9rem; }

@media (max-width: 860px) {
  .kanban { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .site-header { flex-wrap: wrap; gap: .25rem 1rem; }
  .site-header nav { gap: .9rem; }
  .site-header nav a { font-size: .875rem; }
  .toolkit div { grid-template-columns: 1fr; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
