/* gippeumworks.com: a dark, editorial theme. Two self-hosted OFL fonts (licences in /fonts), no scripts. */
@font-face {
  font-family: "Inter Tight";
  src: url("/fonts/inter-tight.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #0f0f0e;
  --raised: #161615;
  --ink: #ecebe6;
  --soft: #c9c7c0;
  --muted: #8d8b85;
  --faint: #5c5b57;
  --line: #2a2a27;
  --live: #7fd1b0;
  --gutter: clamp(16px, 4.5vw, 64px);
  --max: 1360px;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--soft);
  font: 400 17px/1.65 var(--sans);
  letter-spacing: 0.003em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--ink); text-decoration-color: var(--faint); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
em { font-style: italic; }
strong { color: var(--ink); font-weight: 600; }
::selection { background: var(--ink); color: var(--bg); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 10; }

/* Header */
.top {
  max-width: var(--max);
  margin: 0 auto;
  padding: 26px var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 3;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; justify-self: start; }
.brand em, .marquee em, .section-title em, .h-serif { font-family: var(--serif); font-weight: 400; }
.brand em { font-size: 1.12em; letter-spacing: 0; margin-left: 1px; }
.mark { width: 26px; height: 26px; color: var(--ink); flex: none; }
.top nav { display: flex; gap: 34px; }
.top nav a, .sub a {
  color: var(--soft); text-decoration: none; text-transform: uppercase;
  font-size: 13px; font-weight: 500; letter-spacing: 0.08em; padding: 6px 0;
}
.top nav a:hover, .top nav a[aria-current], .sub a[aria-current] { color: var(--ink); box-shadow: inset 0 -1px 0 var(--ink); }
.pill {
  justify-self: end; display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid #45443f; border-radius: 999px; padding: 12px 22px;
  color: var(--ink); text-decoration: none; text-transform: uppercase;
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.08em; transition: background 0.2s, color 0.2s;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--live); }
.pill:hover { background: var(--ink); color: var(--bg); }

/* Home: hero */
.home .hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(24px, 6vh, 80px) var(--gutter) clamp(48px, 8vh, 96px);
  min-height: min(76vh, 780px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
}
.home h1 { margin: 0; position: relative; z-index: 2; grid-column: 1; line-height: 0.86; color: var(--ink); }
.h-sans {
  display: block; font-weight: 500; text-transform: uppercase;
  font-size: clamp(64px, 10.6vw, 164px); letter-spacing: -0.05em; margin-left: -0.05em;
}
.h-serif {
  display: block; text-align: right; color: var(--muted);
  font-size: clamp(64px, 10.2vw, 158px); letter-spacing: -0.02em; margin-top: 0.06em; padding-right: 0.06em;
}
.monogram {
  position: absolute; z-index: 1;
  right: calc(var(--gutter) + 2%); top: 50%; transform: translateY(-52%);
  width: min(44vw, 600px); height: auto;
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.55));
}
.hero-side { grid-column: 2; position: relative; z-index: 2; justify-self: end; align-self: end; width: min(100%, 380px); margin-bottom: -8px; }
.hero-side p { color: var(--muted); font-size: 15.5px; line-height: 1.6; margin: 0 0 22px; }
.hero-side p em { color: var(--soft); }
.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.index li { border-bottom: 1px solid var(--line); }
.index a {
  display: grid; grid-template-columns: 34px 1fr auto; align-items: baseline;
  padding: 16px 0; text-decoration: none; color: var(--ink);
}
.index .n { font-size: 11px; color: var(--faint); letter-spacing: 0.04em; }
.index .t { font-size: 19px; font-weight: 500; letter-spacing: -0.01em; transition: transform 0.25s; }
.index .s { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.index a:hover .t { transform: translateX(6px); }

/* Home: the moving band of apps. Two identical halves, so sliding by -50% loops without a jump. */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 22px 0 28px; }
.track { display: flex; align-items: center; width: max-content; animation: slide 60s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.m-app {
  display: inline-flex; align-items: center; gap: 0.28em;
  font-weight: 500; font-size: clamp(48px, 7vw, 100px); letter-spacing: -0.045em; line-height: 1;
  color: var(--ink); white-space: nowrap;
}
.m-app img { width: 0.82em; height: 0.82em; border-radius: 0.2em; margin-right: 0.12em; }
.m-app em { font-family: var(--serif); font-weight: 400; color: #4a4945; letter-spacing: -0.01em; margin-left: 0.1em; }
.m-sep { font-size: clamp(20px, 2.4vw, 32px); color: var(--faint); padding: 0 0.9em; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .track { animation: none; }
  .index .t, .pill { transition: none; }
}

/* Home: sections */
.band { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 9vw, 120px) var(--gutter) 0; }
.section-title {
  color: var(--ink); font-weight: 500; letter-spacing: -0.04em; line-height: 0.95;
  font-size: clamp(40px, 6vw, 84px); margin: 0 0 clamp(28px, 4vw, 48px);
}
.section-title em { color: var(--muted); letter-spacing: -0.01em; }
.app {
  display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 28px;
  padding: 32px 0; border-top: 1px solid var(--line);
}
@media (min-width: 901px) {
  .app { grid-template-columns: 72px minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 36px; align-items: start; padding: 40px 0; }
  .app h3 { font-size: clamp(36px, 4vw, 56px) !important; }
}
@media (max-width: 900px) {
  .app-body { grid-column: 2; }
}
.app:last-child { border-bottom: 1px solid var(--line); }
.app img { width: 72px; height: 72px; border-radius: 18px; }
.app h3 { color: var(--ink); font-size: clamp(28px, 3.4vw, 40px); font-weight: 500; letter-spacing: -0.03em; margin: 0 0 10px; line-height: 1.05; }
.app p { max-width: 60ch; margin: 0 0 14px; }
.eyebrow { font-size: 12px !important; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px !important; }
.links { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; }
.links a { text-decoration: none; box-shadow: inset 0 -1px 0 var(--faint); }
.links a:hover { box-shadow: inset 0 -1px 0 var(--ink); }
.principles {
  list-style: none; margin: 0; padding: 0; counter-reset: p;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  border-top: 1px solid var(--line);
}
.principles li { counter-increment: p; padding: 26px 24px 30px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.principles li::before { content: counter(p, decimal-leading-zero); display: block; font-size: 11px; color: var(--faint); margin-bottom: 18px; letter-spacing: 0.04em; }
.principles strong { display: block; font-size: 21px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 6px; }
.contact { padding-bottom: clamp(56px, 8vw, 104px); }
.contact p { color: var(--muted); margin: 0 0 18px; }
.email a {
  font-size: clamp(26px, 4.6vw, 64px); font-weight: 500; letter-spacing: -0.04em; line-height: 1.1;
  text-decoration: none; color: var(--ink); box-shadow: inset 0 -2px 0 var(--faint); word-break: break-word;
}
.email a:hover { box-shadow: inset 0 -2px 0 var(--ink); }

/* Content pages: app pages, policies, support */
.wrap { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }
main.wrap { padding-top: clamp(24px, 5vw, 56px); padding-bottom: 72px; }
.sub { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 8px; }
.sub a { border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 12px; }
.sub a:hover, .sub a[aria-current] { border-color: var(--ink); box-shadow: none; }
main.wrap h1 {
  color: var(--ink); font-weight: 500; letter-spacing: -0.04em; line-height: 0.98;
  font-size: clamp(38px, 6.4vw, 68px); margin: 10px 0 22px;
}
main.wrap h2 { color: var(--ink); font-size: 24px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; margin: 48px 0 10px; padding-top: 20px; border-top: 1px solid var(--line); }
main.wrap h3 { color: var(--ink); font-size: 18px; font-weight: 600; margin: 26px 0 6px; }
p, ul, ol { margin: 0 0 16px; }
li { margin: 6px 0; }
ul { padding-left: 1.2em; }
li::marker { color: var(--faint); }
.lead { font-size: clamp(19px, 2.2vw, 22px); line-height: 1.5; color: var(--muted); max-width: 40em; }
.kicker { color: var(--muted); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 6px; }
code { font-size: 0.9em; background: var(--raised); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }
mark.todo { background: #5a4a12; color: inherit; padding: 1px 4px; border-radius: 4px; }
.meta { color: var(--muted); font-size: 15px; }
.status {
  display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px;
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--live); }
main.wrap .hero { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.app-icon { width: 64px; height: 64px; border-radius: 16px; }
.features { list-style: none; padding: 0; margin: 36px 0; counter-reset: f; border-top: 1px solid var(--line); }
.features li {
  counter-increment: f; position: relative;
  padding: 22px 0 22px 48px; margin: 0; border-bottom: 1px solid var(--line); color: var(--muted);
}
.features li::before { content: counter(f, decimal-leading-zero); position: absolute; left: 0; top: 28px; font-size: 11px; color: var(--faint); letter-spacing: 0.04em; }
/* App "About" pages (wide: true) get a wider page, a bigger headline and two columns of features. */
.wrap.wide { max-width: 1120px; }
.wrap.wide h1 { font-size: clamp(44px, 7vw, 96px); max-width: 17ch; }
.wrap.wide .lead { max-width: 34em; }
@media (min-width: 901px) {
  .wrap.wide .features { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; }
}
.features strong { display: block; font-size: 19px; font-weight: 500; letter-spacing: -0.015em; margin-bottom: 4px; }

/* Footer */
.foot {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 36px; color: var(--faint); font-size: 13px;
  /* The top rule spans the content width, not the gutters. */
  background: linear-gradient(var(--line), var(--line)) no-repeat; background-origin: content-box; background-clip: content-box; background-size: 100% 1px;
}
.foot p:first-child { padding-top: 22px; }
.foot p { margin: 0 0 4px; max-width: 72ch; }
.foot a { color: var(--muted); }

/* Narrow screens */
@media (max-width: 900px) {
  .top { grid-template-columns: 1fr auto; }
  .top nav { grid-column: 1 / -1; grid-row: 2; gap: 22px; }
  .home .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .h-sans { font-size: clamp(54px, 15.5vw, 140px); }
  .h-serif { font-size: clamp(54px, 15vw, 136px); }
  .monogram { position: relative; right: auto; top: auto; transform: none; width: min(78vw, 440px); justify-self: end; margin: -6vw -4vw -14vw 0; }
  .hero-side { grid-column: 1; justify-self: stretch; width: auto; max-width: 520px; margin: 0; }
}
@media (max-width: 480px) {
  .pill { padding: 10px 14px; font-size: 11.5px; }
  .app { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .app-body { grid-column: 1; }
  .app img { width: 60px; height: 60px; }
  .index a { grid-template-columns: 30px 1fr; }
  .index .s { grid-column: 2; }
}

/* Emphasis in prose uses the real serif italic (Inter Tight is loaded upright only). */
main.wrap em, .hero-side em { font-family: var(--serif); font-size: 1.08em; letter-spacing: 0; }
