:root {
  --red: #C00018;
  --red-dark: #9a0013;
  --paper: #FAF8F4;
  --ink: #1B1A17;
  --ink-soft: #57534B;
  --rule: #E4E0D7;

  --forest: #2F5D46;
  --forest-tint: #E6EEE7;

  --blue: #1F4E8C;
  --blue-tint: #E5ECF5;

  --max: 1120px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
p { margin: 0; }
img { max-width: 100%; height: auto; }
figure { margin: 0; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

a:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 28px;
  padding-bottom: 28px;
}
.logo { display: block; line-height: 0; }
.logo img { width: 178px; height: auto; }
.top nav { display: flex; gap: 28px; }
.top nav a {
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
}
.top nav a:hover { color: var(--ink); }

/* Intro */
.intro { padding-top: 88px; padding-bottom: 96px; }
h1 {
  margin: 0;
  max-width: 15ch;
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.lede {
  max-width: 58ch;
  margin-top: 28px;
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* Projects */
.project { padding: 88px 0; overflow: hidden; }
.project-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.hills { background: var(--forest-tint); }
.csv { background: var(--blue-tint); }
.csv .project-inner { grid-template-columns: 1.1fr 1fr; }

h2 {
  margin: 0;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}
.status {
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
  color: #fff;
}
.hills .status { background: var(--forest); }
.csv .status { background: var(--blue); }

.summary {
  margin-top: 16px;
  font-size: 18px;
  max-width: 46ch;
}
.features {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(27, 26, 23, .12);
}
.features li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(27, 26, 23, .12);
  font-size: 16px;
  color: var(--ink-soft);
}
.features strong { color: var(--ink); font-weight: 600; }
.hills .features strong { color: var(--forest); }
.csv .features strong { color: var(--blue); }

/* Phone mockups */
.phones {
  position: relative;
  height: 560px;
}
.phone {
  position: absolute;
  width: 260px;
  padding: 10px;
  background: #0d1014;
  border-radius: 38px;
  box-shadow: 0 30px 60px -20px rgba(27, 40, 32, .45);
}
.phone img {
  display: block;
  border-radius: 28px;
}
.phone.front { left: 50%; top: 0; transform: translateX(-20%); }
.phone.back { left: 50%; top: 56px; transform: translateX(-95%) rotate(-5deg); opacity: .95; }

/* Browser mockup */
.browser {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 60px -24px rgba(20, 40, 80, .4);
  border: 1px solid rgba(31, 78, 140, .15);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  background: #eef1f5;
  border-bottom: 1px solid #dde3ea;
}
.browser-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #cfd6df;
}
.browser-bar .url {
  flex: 1;
  margin-left: 10px;
  padding: 3px 12px;
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  color: #5b6573;
}
.browser img { display: block; width: 100%; }

/* Buttons */
.button {
  display: inline-block;
  margin-top: 28px;
  padding: 13px 22px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background-color .15s;
}
.button:hover { background: #3a3832; }
.csv .button { background: var(--blue); }
.csv .button:hover { background: #173d70; }

/* About */
.about {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  padding-top: 104px;
  padding-bottom: 104px;
}
.about h2 { font-size: 32px; }
.about-body p {
  max-width: 60ch;
  font-size: 19px;
  line-height: 1.6;
}
.about-body p + p { margin-top: 20px; color: var(--ink-soft); }

/* Contact */
.contact { background: var(--ink); color: var(--paper); }
.contact-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
  padding-top: 72px;
  padding-bottom: 72px;
}
.contact h2 { font-size: 32px; }
.contact p { margin-top: 10px; color: #c9c4b9; max-width: 48ch; }
.button-light { margin-top: 0; background: var(--red); }
.button-light:hover { background: var(--red-dark); }

/* Footer */
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding-top: 28px;
  padding-bottom: 36px;
  font-size: 14px;
  color: var(--ink-soft);
}
.foot nav { display: flex; gap: 20px; margin-left: auto; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* 404 */
.notfound { padding-top: 120px; padding-bottom: 140px; }
.notfound p { margin-top: 20px; font-size: 19px; color: var(--ink-soft); }
.notfound a { font-weight: 600; text-decoration-color: var(--red); }

@media (max-width: 900px) {
  .project-inner,
  .csv .project-inner { grid-template-columns: 1fr; gap: 48px; }
  .csv .browser { order: 2; }
  .about { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .top { padding-top: 18px; padding-bottom: 18px; }
  .logo img { width: 140px; }
  .top nav { gap: 16px; }
  .top nav a { font-size: 15px; }
  .top nav a[href="#about"] { display: none; }
  .intro { padding-top: 48px; padding-bottom: 64px; }
  .lede { font-size: 18px; }
  .project { padding: 64px 0; }
  h2 { font-size: 32px; }
  .phones { height: 420px; }
  .phone { width: 196px; padding: 8px; border-radius: 30px; }
  .phone img { border-radius: 22px; }
  .about { padding-top: 72px; padding-bottom: 72px; }
  .about-body p { font-size: 17px; }
  .contact-inner { padding-top: 56px; padding-bottom: 56px; }
  .foot nav { margin-left: 0; width: 100%; }
}
