/* Today, Again — landing page. The visual spec is the "Websites" page of the design canvas. */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("fonts/cormorant-garamond-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("fonts/cormorant-garamond-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/cormorant-garamond-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/cormorant-garamond-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/lora-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/lora-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --ink: #201f1d;
  --ink-2: #3f3c38;
  --muted: #66625c;
  --paper: #ffffff;
  --wash: #f3f2f2;
  --gold: #b68235;
  --gold-ink: #7d5411;
  --box: #55524d;
  --bezel: #1d1c1b;
  --night: #1b1916;
  --night-ink: #ece6dc;
  --night-ink-2: #d6cfc4;
  --night-muted: #a59e93;
  --highlight: rgba(182, 130, 53, 0.26);
  --serif-display: "Cormorant Garamond", Georgia, serif;
  --serif: Lora, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 56px);
}

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--ink); }
a:hover { color: var(--gold-ink); }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

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

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter); }

/* Header */

.site-header {
  padding-block: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 1px 3px rgba(32, 31, 29, 0.2); }
.brand span { font-family: var(--serif-display); font-size: 27px; font-weight: 500; line-height: 1; }
.header-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; font-family: var(--sans); font-size: 15px; }

.lang {
  display: flex;
  padding: 3px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(32, 31, 29, 0.3);
  font-size: 13px;
  font-weight: 600;
}
.lang a, .lang span { padding: 5px 11px; border-radius: 999px; text-decoration: none; color: var(--ink); }
.lang [aria-current="page"] { background: var(--ink); color: var(--paper); }

.button {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
}
.button:hover { color: var(--paper); background: #3a3733; }
.button.small { min-height: 44px; padding: 0 18px; font-size: 15px; }

/* Hero */

.hero {
  padding-block: clamp(24px, 4vw, 56px) clamp(48px, 7vw, 96px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr));
  align-items: center;
  gap: clamp(40px, 6vw, 72px);
}
.hero-text { display: flex; flex-direction: column; gap: 28px; }
.hero h1 {
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(56px, 6.4vw, 92px);
  line-height: 1;
  letter-spacing: -0.015em;
}
.hero h1:lang(cs) { font-size: clamp(52px, 5.8vw, 84px); line-height: 1.02; }
.mark {
  font-weight: 400;
  padding: 0 0.06em;
  background: linear-gradient(transparent 64%, var(--highlight) 64%, var(--highlight) 88%, transparent 88%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.lede { max-width: 26em; font-size: 21px; line-height: 33px; color: var(--ink-2); text-wrap: pretty; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.cta-note { font-family: var(--sans); font-size: 15px; line-height: 22px; color: var(--muted); }

.stage { position: relative; display: flex; justify-content: center; padding-block: clamp(24px, 4vw, 48px); }
.device { position: relative; width: min(300px, 58%); }

.phone {
  padding: 3.4%;
  border-radius: 15.5% / 7.3%;
  background: var(--bezel);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 34px 80px rgba(32, 31, 29, 0.22), 0 6px 16px rgba(32, 31, 29, 0.14);
}
.phone img { width: 100%; border-radius: 12.6% / 5.8%; }

.slip {
  position: absolute;
  margin: 0;
  padding: 14px 16px;
  border-radius: 4px;
  background: var(--wash);
  box-shadow: 0 12px 30px rgba(32, 31, 29, 0.12);
  font-size: 16px;
  line-height: 22px;
  animation: float 6s ease-in-out infinite;
}
.slip-film { left: 0; top: 6%; max-width: 42%; transform: rotate(-5deg); }
.slip-shop { right: 0; top: 24%; padding: 14px 18px; display: flex; flex-direction: column; gap: 6px; transform: rotate(4deg); animation-duration: 7s; animation-delay: 1s; }
.slip-code { left: 4%; bottom: 20%; transform: rotate(3deg); animation-duration: 6.5s; animation-delay: 0.5s; }
.slip-mark { right: 2%; bottom: 9%; max-width: 40%; transform: rotate(-3deg); animation-duration: 7.5s; animation-delay: 1.5s; }
.task { display: flex; align-items: center; gap: 10px; }
.task::before { content: ""; flex: none; box-sizing: border-box; width: 15px; height: 15px; border: 1.25px solid var(--box); border-radius: 3px; }

@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
@media (prefers-reduced-motion: reduce) { .slip { animation: none; } }

/* What it leaves out */

.strip { background: var(--wash); }
.strip p {
  padding-block: clamp(36px, 5vw, 56px);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 4px clamp(20px, 3vw, 40px);
  font-family: var(--serif-display);
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.1;
}
.strip s { color: var(--muted); text-decoration-color: var(--gold); text-decoration-thickness: 3px; }

/* Tiles */

.tiles {
  padding-block: clamp(72px, 9vw, 120px) clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 20px;
}
.tile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(24px, 3vw, 36px) clamp(24px, 3vw, 36px) 0;
  border-radius: 22px;
  background: var(--wash);
  overflow: hidden;
}
.tile h2, .devices h2 { font-family: var(--serif-display); font-weight: 400; }
.tile h2 { font-size: 34px; line-height: 38px; }
.tile p { font-size: 17px; line-height: 26px; color: var(--ink-2); }
.crop { margin-top: 22px; height: 300px; overflow: hidden; display: flex; justify-content: center; }
.crop .phone { width: 74%; height: max-content; box-shadow: none; }

.tile.night { padding: clamp(24px, 3vw, 36px); background: var(--night); color: var(--night-ink); }
.tile.night p { color: var(--night-ink-2); }
.notice-area { flex: 1; min-height: 220px; display: flex; align-items: center; justify-content: center; }
.notice {
  width: 100%;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 22px;
  background: rgba(62, 58, 52, 0.75);
  box-shadow: inset 0 0 0 1px rgba(236, 230, 220, 0.12), 0 20px 50px rgba(0, 0, 0, 0.45);
  font-family: var(--sans);
  transform: rotate(-2deg);
}
.notice img { flex: none; width: 38px; height: 38px; border-radius: 9px; }
.notice-body { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 14px; line-height: 20px; }
.notice-head { display: flex; justify-content: space-between; gap: 12px; line-height: 19px; }
.notice-head b { font-weight: 600; }
.notice-head span { color: var(--night-muted); }

/* Taking lines along: today's page and tomorrow's, drawn in the app's type and colours */

.carry { padding-bottom: clamp(40px, 5vw, 64px); }
.carry article { padding: clamp(28px, 4vw, 56px); border-radius: 22px; background: var(--wash); }
.carry-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; }
.carry h2 { font-family: var(--serif-display); font-weight: 400; font-size: clamp(34px, 4vw, 48px); line-height: 1.1; text-wrap: balance; }
.carry-head p { max-width: 24em; font-size: 17px; line-height: 26px; color: var(--ink-2); text-wrap: pretty; }

.sheets {
  max-width: 680px;
  margin: clamp(32px, 4vw, 48px) auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(16px, 3vw, 32px);
}
.sheet {
  padding: 22px 22px 26px;
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 12px 30px rgba(32, 31, 29, 0.12), 0 2px 6px rgba(32, 31, 29, 0.06);
  font-size: 16px;
  line-height: 26px;
}
.sheet-today { transform: rotate(-1.5deg); }
.sheet-tomorrow { margin-top: 36px; transform: rotate(1.5deg); }
.sheet-date { margin-bottom: 12px; font-family: var(--serif-display); font-size: 26px; line-height: 30px; font-weight: 500; }
.sheet .rule { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-style: italic; font-size: 13px; font-variant-numeric: lining-nums tabular-nums; color: var(--muted); }
.sheet .rule::before { content: ""; flex: 1; height: 1px; background: rgba(32, 31, 29, 0.16); }
.sheet .rule.from { color: var(--gold-ink); }
.sheet .line { display: flex; }
.sheet .line + .line { margin-top: 8px; }
.sheet .tick + .tick { margin-top: 2px; }
.sheet .tick i { position: relative; flex: none; width: 28px; height: 26px; }
.sheet .tick i::after {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  box-sizing: border-box;
  width: 16px;
  height: 16px;
  border: 1.25px solid #55524d;
  border-radius: 3px;
}
.sheet .done i::after, .sheet .tick.carried i::after { border: 1.5px solid var(--gold); }
.sheet .tick svg { position: absolute; left: 3px; top: 8px; width: 10px; height: 10px; fill: none; stroke: var(--gold); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.sheet .done span { color: #6f6c68; text-decoration: line-through; text-decoration-color: rgba(32, 31, 29, 0.55); }
.sheet .carried span { color: #6f6c68; }
.sheet .line b { margin-left: 0.6em; font-weight: 400; font-style: italic; font-size: 13px; white-space: nowrap; color: var(--gold-ink); }

@media (max-width: 640px) {
  .sheets { grid-template-columns: minmax(0, 1fr); }
  .sheet { width: 84%; box-sizing: border-box; }
  .sheet-tomorrow { margin: -18px 0 0 auto; }
}

/* Quick entry: the widget and the Mac's menu bar window */

.quick {
  padding-bottom: clamp(56px, 7vw, 96px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 20px;
}
.quick .crop { height: 380px; }
.quick .crop .phone { width: 62%; }
.menubar-scene {
  position: relative;
  margin: 22px calc(-1 * clamp(24px, 3vw, 36px)) 0;
  height: 380px;
  overflow: hidden;
  background: linear-gradient(160deg, #e4ded6 0%, #cfc8bf 55%, #bdb5ab 100%);
}
.menubar {
  height: 30px;
  padding-inline: 16px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  background: rgba(255, 255, 255, 0.55);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.mb-icon { flex: none; padding: 3px 5px; border-radius: 6px; background: rgba(32, 31, 29, 0.12); box-sizing: content-box; }
.menubar-scene .panel {
  position: absolute;
  top: 38px;
  right: clamp(32px, 10%, 96px);
  width: min(224px, 70%);
  border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(32, 31, 29, 0.12), 0 24px 60px rgba(32, 31, 29, 0.25);
}

/* Devices */

.devices { padding-bottom: clamp(72px, 9vw, 120px); }
.devices article { padding: clamp(28px, 4vw, 56px) clamp(24px, 4vw, 56px) 0; border-radius: 22px; background: var(--wash); overflow: hidden; }
.devices-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; }
.devices h2 { font-size: clamp(34px, 4vw, 48px); line-height: 1.1; }
.devices-head p { font-size: 17px; line-height: 26px; color: var(--ink-2); }
.scene { position: relative; margin-top: clamp(28px, 4vw, 48px); aspect-ratio: 16 / 8.2; }
.scene .mac { position: absolute; left: 0; top: 0; width: 72%; border-radius: 1.4% / 2.2%; box-shadow: 0 0 0 1px rgba(32, 31, 29, 0.12), 0 30px 70px rgba(32, 31, 29, 0.16); }
.scene .ipad { position: absolute; left: 40%; top: 22%; width: 46%; padding: 1.8%; border-radius: 4.4% / 6.3%; background: var(--bezel); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 30px 70px rgba(32, 31, 29, 0.22); }
.scene .ipad img { width: 100%; border-radius: 2.6% / 3.8%; }
.scene .phone { position: absolute; right: 0; top: 10%; width: 15%; padding: 0.55%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 26px 60px rgba(32, 31, 29, 0.26); }

/* Download */

.closing { padding-bottom: clamp(80px, 10vw, 128px); display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.closing h2 { font-family: var(--serif-display); font-weight: 400; font-size: clamp(52px, 7vw, 96px); line-height: 1.04; }
.closing p { max-width: 30em; font-size: 19px; line-height: 30px; color: var(--ink-2); text-wrap: pretty; }
.closing .button { padding: 0 30px; }

/* Footer */

.site-footer { padding-bottom: 44px; font-family: var(--sans); font-size: 14px; color: var(--muted); }
.site-footer > div { padding-top: 28px; border-top: 1px solid rgba(32, 31, 29, 0.14); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.site-footer .name { font-family: var(--serif-display); font-size: 20px; color: var(--ink); }
.site-footer a { color: var(--muted); }

/* Privacy and Support */

.doc { max-width: 40em; padding-block: clamp(32px, 5vw, 72px) clamp(72px, 9vw, 120px); }
.doc h1 { font-family: var(--serif-display); font-weight: 400; font-size: clamp(48px, 6vw, 76px); line-height: 1.04; letter-spacing: -0.015em; }
.doc .lede { margin-top: 20px; }
.doc .updated { margin-top: 14px; font-family: var(--sans); font-size: 14px; color: var(--muted); }
.doc h2 { margin: 44px 0 0; font-family: var(--serif-display); font-weight: 400; font-size: 30px; line-height: 36px; }
.doc p { font-size: 18px; line-height: 30px; color: var(--ink-2); }
.doc h2 + p { margin-top: 8px; }
.doc p + p { margin-top: 14px; }

/* A placeholder still to be filled in before launch. */
.todo { padding: 0 0.2em; border-radius: 3px; background: #ffe58a; color: var(--ink); }

.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 28px; }
