/* Color library: from the crayon photo series */
:root {
  --ink: #231815;
  --ink-soft: rgba(35, 24, 21, 0.78);
  --line: rgba(35, 24, 21, 0.12);
  --blush: #F7E7E2;   /* page ground */
  --wall: #EEC4BE;    /* about */
  --olive: #98A55A;   /* main: header + hero */
  --moss: #5E6B2A;    /* digital things card */
  --crayon: #E0602F;  /* identity card + footer */
  --crayon-pink: #F28C86; /* websites card */

  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  --mono: "Azeret Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --pad: clamp(20px, 5.5vw, 80px);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--blush);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); text-underline-offset: 5px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
h1, h2, p { margin: 0; }

.skip {
  position: absolute; left: 12px; top: -60px;
  background: var(--ink); color: var(--blush);
  padding: 10px 16px; border-radius: 8px; z-index: 10;
}
.skip:focus { top: 12px; }

/* Header */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 88px;
  padding: env(safe-area-inset-top, 0px) var(--pad) 0;
  background: var(--olive);
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-family: var(--display); font-weight: 700; font-size: 26px;
  letter-spacing: -0.02em; text-decoration: none;
}
.site-header nav { display: flex; gap: 32px; font-size: 15px; }
.site-header nav a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.site-header nav a:hover { text-decoration: underline; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 620px);
  min-height: 720px;
  background: var(--olive);
}
.hero-text {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 32px;
  padding: 96px 64px 96px var(--pad);
}
.hero h1 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(34px, 4.2vw, 60px); line-height: 1.05; letter-spacing: -0.03em;
  max-width: 22ch;
}
.hero-sub { font-size: 20px; line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 8px; font-size: 16px; }
.button {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px;
  background: var(--ink); color: var(--olive);
  border-radius: 8px; font-weight: 600; text-decoration: none;
}
.button:hover { background: #3a2a25; }
.hero-photo { position: relative; overflow: hidden; }
.hero-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 49% 40%;
}

/* Services */
.services {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
  padding: 96px var(--pad);
}
.service {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 16px;
  min-height: 340px; padding: 40px; border-radius: 16px;
}
.service h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(36px, 3.4vw, 48px); letter-spacing: -0.03em; line-height: 1.05;
}
.service p { font-size: 19px; line-height: 1.45; font-weight: 500; }
.service--crayon { background: var(--crayon); }
.service--pink { background: var(--crayon-pink); }
.service--moss { background: var(--moss); color: var(--blush); }

/* About */
.about {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 4fr); gap: 56px;
  padding: 120px var(--pad) 128px;
  background: var(--wall);
}
.about h2 { font-family: var(--display); font-weight: 700; font-size: 20px; padding-top: 8px; }
.about-body { display: flex; flex-direction: column; gap: 28px; }
.about-belief {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(32px, 4.2vw, 60px); line-height: 1.08; letter-spacing: -0.03em;
  max-width: 26ch;
}
.about-facts { margin-top: 12px; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.4; font-weight: 500; max-width: 40ch; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tags li {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px;
  border: 1.5px solid var(--ink); border-radius: 999px; font-size: 15px; font-weight: 500;
}

/* Writing */
.writing { display: flex; flex-direction: column; gap: 48px; padding: 80px var(--pad) 96px; }
.writing-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.writing-head > div { display: flex; flex-direction: column; gap: 14px; }
.publication {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--display); font-weight: 700; font-size: 32px; letter-spacing: -0.025em;
}
.publication svg { flex: none; }
.writing-head p { color: var(--ink-soft); max-width: 36em; }
.writing-head > a { white-space: nowrap; font-size: 16px; }

.posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 40px; }
.post { display: flex; flex-direction: column; gap: 16px; text-decoration: none; }
.post img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; }
.post time { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--ink-soft); }
.post-title { font-size: 24px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; max-width: 30ch; }
.post-desc { margin-top: -4px; color: var(--ink-soft); max-width: 38em; }
.post:hover .post-title { text-decoration: underline; text-decoration-thickness: 2px; }

/* Footer */
.site-footer {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px 40px; flex-wrap: wrap;
  padding: 96px var(--pad) calc(56px + env(safe-area-inset-bottom, 0px));
  background: var(--crayon);
}
.site-footer h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(64px, 8.4vw, 120px); line-height: 0.9; letter-spacing: -0.04em;
}
.footer-links { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 20px; font-weight: 700; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }

/* Tablet */
@media (max-width: 1080px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 44%); }
  .hero-text { padding-right: 40px; }
  .services { grid-template-columns: minmax(0, 1fr); }
  .service { min-height: 0; padding-top: 96px; }
  .about { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}

/* Phone */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .site-header { min-height: 64px; }
  .wordmark { font-size: 22px; }
  .site-header nav { gap: 14px; font-size: 14px; }
  .site-header nav a { white-space: nowrap; }
  .wordmark { font-size: 20px; }
  .wordmark { flex: none; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-photo { order: -1; aspect-ratio: 4 / 3; }
  .hero-text { padding: 40px var(--pad) 56px; gap: 24px; }
  .hero-sub { font-size: 17px; }
  .services { padding-block: 56px; gap: 16px; }
  .service { padding: 64px 24px 28px; border-radius: 12px; }
  .service p { font-size: 17px; }
  .about { padding-block: 72px 80px; }
  .writing { padding-block: 64px 72px; gap: 36px; }
  .publication { font-size: 26px; }
  .posts { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .post-title { font-size: 21px; }
  .site-footer { padding-top: 72px; }
  .footer-links { align-items: flex-start; font-size: 18px; }
}
