/* eyquem.fr — "Field Notes"
   Design tokens live in :root as custom properties; components are
   styled through the tokens so light/dark stay in sync automatically. */

:root {
  --paper: #EFF1EF;
  --paper-raise: #FFFFFF;
  --ink: #1B2430;
  --ink-soft: #4A5568;
  --line: #C7CDD1;
  --accent: #FF5A1F;
  --accent-ink: #B33E12;
  --focus: #1B2430;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #12161C;
    --paper-raise: #181D25;
    --ink: #E8EAED;
    --ink-soft: #9AA5B1;
    --line: #2A323C;
    --accent: #FF6A33;
    --accent-ink: #FFB08A;
    --focus: #E8EAED;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(var(--paper), var(--paper)),
    repeating-linear-gradient(0deg, transparent, transparent 39px, var(--line) 39px, var(--line) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, var(--line) 39px, var(--line) 40px);
  color: var(--ink);
  font-family: -apple-system, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.display {
  font-family: ui-serif, "Iowan Old Style", "Palatino Linotype", "Georgia", serif;
}

.mono {
  font-family: ui-monospace, "SF Mono", "Menlo", "Consolas", monospace;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.sheet {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 28px 100px;
  position: relative;
}

.corner {
  position: fixed;
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--ink-soft);
  opacity: .7;
  z-index: 2;
}

.corner.tl {
  top: 16px;
  left: 20px;
}

.corner.br {
  bottom: 16px;
  right: 20px;
  text-align: right;
}

header.top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 28px 0 60px;
  flex-wrap: wrap;
  gap: 12px;
}

.mark {
  font-size: 15px;
  letter-spacing: .02em;
}

.mark b {
  font-weight: 700;
}

nav.top-nav {
  display: flex;
  gap: 22px;
  font-size: 13px;
  letter-spacing: .03em;
}

nav.top-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

nav.top-nav a:hover {
  color: var(--ink);
  border-color: var(--line);
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ink-soft);
  text-decoration: none;
  margin-bottom: 40px;
}

.back:hover {
  color: var(--accent-ink);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 18px;
}

.tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.doc-eyebrow {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 14px;
}

h1.hero-title {
  font-size: clamp(38px, 6vw, 58px);
  line-height: 1.05;
  margin: 0 0 22px;
  text-wrap: balance;
  font-weight: 500;
}

.sheet > h1 {
  font-size: clamp(30px, 4.5vw, 42px);
  line-height: 1.1;
  margin: 0 0 12px;
  font-weight: 500;
  text-wrap: balance;
}

.hero-lede {
  max-width: 52ch;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 34px;
}

.updated {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin: 0 0 46px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.compass {
  width: 64px;
  height: 64px;
  margin-right: 28px;
}

.coord-strip {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-soft);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  margin-bottom: 70px;
}

.coord-strip span b {
  color: var(--ink);
}

section {
  padding: 25px 0;
  /* border-top: 1px solid var(--line); */
}

.section-label {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
}

.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

h2 {
  font-size: 26px;
  font-weight: 500;
  margin: 0 0 16px;
}

.app-card {
  background: var(--paper-raise);
  border: 1px solid var(--line);
  padding: 26px;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
}

.app-card + h2 {
  margin-top: 40px;
}

.app-icon {
  width: 56px;
  height: 56px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.app-name {
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 4px;
}

.app-store-name {
  font-size: 11.5px;
  color: var(--ink-soft);
  margin: 0 0 14px;
}

.app-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 14px;
  max-width: 50ch;
}

.app-desc p {
  margin: 0;
}

.app-desc p + p {
  margin-top: 10px;
}

.app-meta {
  font-size: 11.5px;
  color: var(--accent-ink);
  letter-spacing: .02em;
  margin: 0 0 20px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.app-meta span {
  white-space: nowrap;
}

.app-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 13px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--ink);
  text-decoration: none;
  color: var(--ink);
  font-size: 13px;
  letter-spacing: .02em;
}

.btn:hover {
  background: var(--ink);
  color: var(--paper);
}

.legal-link {
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-link:hover {
  color: var(--accent-ink);
}

.about p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 56ch;
}

article h2 {
  font-size: 16px;
  font-weight: 600;
  margin: 40px 0 12px;
  letter-spacing: .01em;
}

article h2:first-of-type {
  margin-top: 0;
}

article p {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0 0 14px;
  max-width: 60ch;
}

article strong {
  color: var(--ink);
  font-weight: 600;
}

article a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

article blockquote {
  background: var(--paper-raise);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  padding: 16px 18px;
  margin: 0 0 14px;
  max-width: 60ch;
}

article blockquote p {
  margin: 0;
  color: var(--ink);
}

.not-found {
  padding: 70px 0;
  font-size: 15px;
  color: var(--ink-soft);
}

footer {
  padding-top: 40px;
  margin-top: 10px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12.5px;
  color: var(--ink-soft);
}

footer a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 480px) {
  .app-card {
    grid-template-columns: 1fr;
  }

  .app-icon {
    margin-bottom: 4px;
  }
}
