/* HourJar | hourjar.xyz
   Premium warm white with a fine film grain on every page; the photo floats as a card at the top.
   System fonts, no frameworks. */

:root {
  --bg: #f6f5f1;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --line: #e2e0da;
  --ink: #1d1d1f;
  --on-ink: #ffffff;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif;
  /* Space between the page edge and the hero card; every row lines up with the card's edges. */
  --gutter: clamp(12px, 2.5vw, 32px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

/* Film grain over the whole page: tiny SVG noise, fixed so it doesn't scroll. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none;
  opacity: .07; mix-blend-mode: multiply;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 6px; }

.wrap { width: calc(100% - 2 * var(--gutter)); margin-inline: auto; }

/* Top bar: plain, scrolls away with the page */
.bar .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 19px/1 var(--display); letter-spacing: -0.02em; text-decoration: none; }
.brand img { width: 26px; height: 26px; border-radius: 7px; }
.bar nav { display: flex; gap: 22px; font-size: 14px; }
.bar nav a { color: var(--text); text-decoration: none; }
.bar nav a:hover, .bar nav a[aria-current] { opacity: .6; }

/* Hero: the photo as a floating card with room on every side, title and button on it */
.hero { padding: 0 var(--gutter); }
.hero .card {
  position: relative; overflow: hidden;
  min-height: min(calc(100svh - 64px - 24px), 860px);
  border-radius: clamp(24px, 3vw, 40px);
  display: flex; align-items: flex-end;
  color: #fff; background: #111;
}
.hero picture, .hero img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero img { object-fit: cover; object-position: 50% 40%; }
/* Shade where the text sits: left on wide screens, bottom on phones. */
.hero .card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.75) 100%);
}
.hero .copy { position: relative; z-index: 1; padding: 0 clamp(24px, 5vw, 72px) clamp(32px, 5vw, 64px); max-width: 40rem; }
.hero h1 { font: 700 clamp(36px, 4.8vw, 68px)/1.04 var(--display); letter-spacing: -0.035em; margin: 0 0 16px; }
.hero .sub { font-size: clamp(17px, 1.6vw, 20px); color: rgba(255,255,255,.85); margin: 0 0 32px; max-width: 24em; }
@media (min-aspect-ratio: 4/5) {
  .hero .card { align-items: center; }
  .hero .card::after { background: linear-gradient(90deg, rgba(0,0,0,.65) 0%, rgba(0,0,0,.3) 40%, transparent 62%); }
  .hero img { object-position: 30% 40%; }
}

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 48px; padding: 0 20px 0 17px; border-radius: 999px;
  background: #fff; color: #000;
  font: 600 17px/1 var(--display); letter-spacing: -0.01em; text-decoration: none;
  transition: background-color .15s ease;
}
/* The only effect: a slightly darker fill on hover. */
.button:hover { background: #e6e6e6; }
.button .apple { width: 18px; height: 18px; margin-top: -3px; }
.button.ink { background: var(--ink); color: var(--on-ink); }
.button.ink:hover { background: #3a3a3c; }

/* Three plain facts */
.facts { padding: 96px 0; }
.facts .wrap { display: grid; gap: 48px; grid-template-columns: repeat(3, 1fr); }
.facts h2 { font: 600 24px/1.2 var(--display); letter-spacing: -0.02em; margin: 0 0 8px; }
.facts p { margin: 0; color: var(--text-2); }
@media (max-width: 760px) { .facts .wrap { grid-template-columns: 1fr; gap: 36px; } }

.band { padding: 96px 0; text-align: center; }
.band h2 { font: 700 clamp(32px, 5vw, 48px)/1.1 var(--display); letter-spacing: -0.03em; margin: 0 0 28px; }

/* Legal and support pages */
.doc { padding: 64px 0 96px; }
.doc .wrap > * { max-width: 720px; }
.doc h1 { font: 700 clamp(36px, 6vw, 48px)/1.1 var(--display); letter-spacing: -0.03em; margin: 0 0 8px; }
.doc .updated { color: var(--text-2); margin: 0 0 40px; }
.doc h2 { font: 600 22px/1.3 var(--display); letter-spacing: -0.01em; margin: 40px 0 10px; }
.doc p, .doc li { color: var(--text); }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }
.doc .lead { font-size: 21px; line-height: 1.45; color: var(--text-2); }

.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: 10px 0 0; color: var(--text-2); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 14px 0 18px; font-size: 13px; color: var(--text-2); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 20px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }
