/* Dialed website. Paper by default, dark when the visitor's device is. */

/* Fonts are served with the site, so no page makes a third-party request. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/inter-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/instrument-serif-latin.woff2') format('woff2');
}

:root {
  color-scheme: light dark;
  --bg: #F2ECDF;
  --surface: #FAF6EC;
  --line: #D9D0BD;
  --ink: #1D1A16;
  --muted: #665F53;
  --accent: #7A5218;
  --on-accent: #FBF7EE;
  --shadow: rgba(60, 45, 20, 0.16);
  --tick: #B9AE97;
  --sel-bg: #ECE4D3;
  --tab-shadow: rgba(60, 45, 20, 0.12);
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F0E0D;
    --surface: #191816;
    --line: #2E2B27;
    --ink: #F3EFE7;
    --muted: #A8A195;
    --accent: #D2AE74;
    --on-accent: #17130C;
    --shadow: rgba(0, 0, 0, 0.5);
    --tick: #5A554D;
    --sel-bg: #2A2724;
    --tab-shadow: rgba(0, 0, 0, 0.4);
  }
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, p, figure { margin: 0; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.band { border-top: 1px solid var(--line); }

/* Header */

.site-header {
  padding-top: 28px;
  padding-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 30px;
  line-height: 36px;
  letter-spacing: -0.01em;
}

a.brand { color: inherit; text-decoration: none; }
.brand svg { flex: none; }
.mark-ink { fill: none; stroke: var(--ink); }
.mark-accent { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; }

.pill {
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 500;
}

.pill-small {
  height: 32px;
  padding: 0 14px;
  border-radius: 16px;
  font-size: 13px;
}

.pill-accent {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}

.muted { color: var(--muted); }

/* Hero */

.hero {
  padding-top: 40px;
  padding-bottom: 80px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
}

.hero-copy {
  flex: 1 1 440px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.eyebrow {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.lede {
  max-width: 540px;
  font-size: 19px;
  line-height: 30px;
  color: var(--muted);
  text-wrap: pretty;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-phone {
  flex: 1 1 280px;
  display: flex;
  justify-content: center;
}

/* Phone frame around a real screenshot of the app */

.phone {
  flex: none;
  width: 264px;
  padding: 10px;
  border-radius: 46px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.phone-lifted { box-shadow: 0 30px 60px var(--shadow); }

.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 36px;
}

/* The hero's live Time screen: the app's screen drawn in HTML at 390px wide, scaled to fit the
   phone frame. clock.js keeps it ticking. */

.live-screen {
  width: 242px;
  aspect-ratio: 1320 / 2868;
  border-radius: 36px;
  overflow: hidden;
  background: var(--bg);
}

.app-time {
  width: 390px;
  height: calc(390px * 2868 / 1320);
  transform: scale(calc(242 / 390));
  transform-origin: 0 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  user-select: none;
}

.app-time svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-time .accent { color: var(--accent); }

.app-head {
  padding: 58px 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.app-title {
  font-family: var(--serif);
  font-size: 38px;
  line-height: 44px;
  letter-spacing: -0.01em;
}

.app-gear {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-space { flex: 1 1 0; min-height: 12px; }
.app-space-3 { flex-grow: 3; }

.app-clock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.app-dial {
  position: relative;
  width: 318px;
  height: 318px;
}

.app-dial > svg,
.app-hand,
.app-readout {
  position: absolute;
  left: 0;
  top: 0;
  width: 318px;
  height: 318px;
}

.app-dial .dial-minutes {
  stroke: var(--tick);
  stroke-width: 6;
  stroke-linecap: butt;
  stroke-dasharray: 1.2 14.822;
  stroke-dashoffset: 0.6;
}

.app-dial .dial-hours {
  stroke: var(--ink);
  stroke-width: 12;
  stroke-linecap: butt;
  stroke-dasharray: 2 76.54;
  stroke-dashoffset: 1;
}

.app-hand span {
  position: absolute;
  left: 157.5px;
  top: 0;
  width: 3px;
  height: 24px;
  border-radius: 2px;
  background: var(--accent);
}

.app-readout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.app-date {
  font-size: 11px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.app-digits {
  display: flex;
  align-items: baseline;
  font-size: 54px;
  line-height: 1;
  font-weight: 300;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.app-period {
  margin-left: 4px;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--accent);
}

.app-zone {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 13px;
  line-height: 18px;
  font-variant-numeric: tabular-nums;
}

.app-zone-name { font-weight: 500; }

.app-synced {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  line-height: 20px;
}

.app-dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: var(--accent);
}

.app-tabs {
  display: flex;
  justify-content: center;
  padding: 4px 0 26px;
}

.app-tabbar {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 34px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 8px 24px var(--tab-shadow);
}

.app-tab {
  width: 88px;
  height: 56px;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 500;
}

.app-tab-on {
  background: var(--sel-bg);
  color: var(--accent);
  font-weight: 600;
}

/* Sections */

.section {
  padding-top: 72px;
  padding-bottom: 72px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.section-wide-gap { gap: 40px; }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

h2 {
  max-width: 640px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.section-head p {
  max-width: 560px;
  font-size: 17px;
  line-height: 27px;
  color: var(--muted);
  text-wrap: pretty;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 16px;
}

.cards-two { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }

.card {
  padding: 28px;
  border-radius: 24px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-filled { background: var(--surface); }

.card h3 {
  font-size: 26px;
  line-height: 30px;
}

.card p {
  font-size: 16px;
  line-height: 25px;
  color: var(--muted);
  text-wrap: pretty;
}

.card p.plain {
  font-size: 17px;
  line-height: 27px;
  color: inherit;
}

.screens {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.screens figure {
  width: 264px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.screens figcaption {
  text-align: center;
  font-size: 15px;
  line-height: 23px;
  color: var(--muted);
  text-wrap: pretty;
}

/* Closing */

.closing {
  padding-top: 96px;
  padding-bottom: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.closing h2 {
  max-width: none;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 1;
  letter-spacing: -0.02em;
}

.closing p {
  font-size: 18px;
  line-height: 28px;
  color: var(--muted);
}

/* Footer */

.site-footer {
  padding-top: 28px;
  padding-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a[aria-current="page"] { color: var(--ink); }

/* Privacy and support pages */

.doc {
  max-width: 720px;
  padding-top: 40px;
  padding-bottom: 96px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.doc-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.doc h1 { font-size: clamp(40px, 6vw, 60px); }

.doc section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.doc h2 {
  font-size: 28px;
  line-height: 34px;
}

.doc p,
.doc li {
  font-size: 17px;
  line-height: 27px;
  text-wrap: pretty;
}

.doc ul {
  margin: 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.doc a {
  color: var(--accent);
  text-underline-offset: 3px;
}

.doc .contact {
  padding: 28px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.doc .contact a {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 36px;
  overflow-wrap: anywhere;
}
