@font-face { font-family: Edwin; src: url(fonts/Edwin-Roman.otf) format("opentype"); font-display: swap; }
@font-face { font-family: Edwin; font-style: italic; src: url(fonts/Edwin-Italic.otf) format("opentype"); font-display: swap; }
@font-face { font-family: Edwin; font-weight: 700; src: url(fonts/Edwin-Bold.otf) format("opentype"); font-display: swap; }
@font-face { font-family: Edwin; font-style: italic; font-weight: 700; src: url(fonts/Edwin-BdIta.otf) format("opentype"); font-display: swap; }
/* The dynamics glyphs (SMuFL U+E520–E52F) from Bravura, renamed as the OFL requires for a subset. */
@font-face { font-family: "Focussimo Dynamics"; src: url(fonts/FocussimoDynamics.woff) format("woff"); font-display: block; }

/* Piano-black lacquer, ivory text, gold lettering: the app's own palette (Shared/Design/Theme.swift). */
:root {
  --piano: #000;
  --lacquer: #0b0b0c;
  --line: rgba(247, 242, 230, .12);
  --ivory: #F7F2E6;
  --ivory-2: rgba(247, 242, 230, .74);
  --ivory-3: rgba(247, 242, 230, .52);
  --gold: #C9B58C;
  --gold-light: #E1D1B0;
  --serif: Edwin, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--piano); color: var(--ivory); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--gold-light); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ivory); }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; margin: 0; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(680px, 100% - 32px); margin-inline: auto; }

/* The maker's name on the fallboard: the only gradient on the site. */
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 22px var(--serif); text-decoration: none;
         background: linear-gradient(180deg, var(--gold-light), var(--gold) 60%, #A8946E); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.top { padding: 22px 0; }
.top .wrap { display: flex; justify-content: space-between; align-items: center; }
.top nav a { color: var(--ivory-2); text-decoration: none; font-size: 15px; margin-left: 22px; }
.top nav a:hover { color: var(--ivory); }

.smallcaps { font: 600 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ivory-3); }

/* Masthead */
.masthead { text-align: center; padding: 72px 0 0; }
.masthead h1 { margin-top: 28px; font-size: clamp(46px, 7vw, 96px); line-height: .98; letter-spacing: -.02em; color: var(--gold); }
.hairpin { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 34px auto 0; color: var(--gold); }
.hairpin i { font: normal 400 64px/1 "Focussimo Dynamics"; font-style: normal; }
.hairpin svg { width: min(360px, 52vw); height: 26px; }
.masthead .lede { margin: 34px auto 0; max-width: 34ch; font: italic 400 20px/1.45 var(--serif); color: var(--ivory-2); }
.badge { display: inline-block; margin-top: 36px; }
.soon { margin: 36px 0 0; font-size: 15px; color: var(--ivory-2); }
.soon em { font: italic 400 17px var(--serif); color: var(--gold); margin-right: .3em; }
.badge img { display: block; height: 54px; width: auto; }

.phone { padding: 8px; border-radius: 54px; background: #111113; box-shadow: 0 0 0 1px rgba(247, 242, 230, .16), 0 40px 90px rgba(0, 0, 0, .9); }
.phone img { display: block; width: 100%; height: auto; border-radius: 46px; }
.hero-phone { width: min(400px, 84vw); margin: 88px auto 0; }
/* Only the top of a screen: the rest is quiet black anyway. */
.phone.crop { overflow: hidden; border-bottom-left-radius: 0; border-bottom-right-radius: 0; padding-bottom: 0;
              -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent); }
.phone.crop img { border-bottom-left-radius: 0; border-bottom-right-radius: 0; aspect-ratio: 1320 / 1650; object-fit: cover; object-position: top; }

/* The programme */
.programme { padding: 160px 0 96px; }
.programme > .narrow > .smallcaps { display: block; text-align: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.movement { padding: 64px 0; border-bottom: 1px solid var(--line); }
.movement header { display: flex; align-items: baseline; gap: 22px; }
.movement .num { font: 700 17px/1 var(--serif); color: var(--gold); min-width: 2.4em; }
.movement h2 { font: 700 clamp(34px, 5vw, 44px)/1.05 var(--serif); }
/* Bold italic only where the clock turns into a word, as in the app. */
.movement h2.word { font-style: italic; }
.movement .body { margin-left: calc(2.4em + 22px); }
.movement p { color: var(--ivory-2); margin: 18px 0 0; }
.movement ul { margin: 18px 0 0; padding: 0; list-style: none; color: var(--ivory-2); }
.movement li { padding: 8px 0; }
.movement li b { color: var(--ivory); font-weight: 600; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 44px; }
.pair figure { margin: 0; }
.pair figcaption { margin-top: 12px; text-align: center; font: italic 16px var(--serif); color: var(--ivory-3); }
.single { width: min(320px, 76vw); margin: 44px auto 0; }

/* Pro */
.pro { padding: 200px 0 120px; background: var(--lacquer); border-top: 1px solid var(--line); }
.pro h2 { font-size: clamp(40px, 6vw, 64px); color: var(--gold); text-align: center; }
.pro .intro { text-align: center; margin: 18px auto 0; max-width: 40ch; font: 400 19px/1.5 var(--sans); color: var(--ivory-2); }
.pro .still { margin: 64px auto 0; width: min(560px, 100%); border-radius: 28px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.pro .still img { display: block; width: 100%; height: auto; }
.crescendo { margin: 72px 0 0; padding: 0; list-style: none; }
.crescendo li { display: grid; grid-template-columns: 3em 12em 1fr; gap: 0 20px; align-items: baseline; padding: 18px 0; border-top: 1px solid var(--line); }
.crescendo li:last-child { border-bottom: 1px solid var(--line); }
.crescendo i { font: normal 400 44px/.6 "Focussimo Dynamics"; font-style: normal; color: var(--gold); }
.crescendo b { font: 600 17px/1.3 var(--sans); color: var(--ivory); }
.crescendo span { color: var(--ivory-2); font-size: 16px; }
.history { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-top: 96px; }
.history h3 { font: 700 32px/1.1 var(--serif); }
.history p { color: var(--ivory-2); }
.history .still { margin: 0; }
.prices { margin-top: 96px; text-align: center; }
.prices .line { margin-top: 14px; font: 700 clamp(22px, 3vw, 28px)/1.4 var(--serif); }
.prices .line em { font-weight: 400; font-style: normal; color: var(--ivory-3); padding: 0 .35em; }
.prices p { color: var(--ivory-2); margin: 14px auto 0; max-width: 48ch; }

.quiet { padding: 120px 0 140px; text-align: center; }
.quiet h2 { font: 700 clamp(30px, 4vw, 40px)/1.1 var(--serif); }
.quiet p { margin: 18px auto 0; max-width: 46ch; color: var(--ivory-2); }

/* Legal and support pages */
.doc { padding: 40px 0 96px; }
.doc h1 { font-size: clamp(40px, 6vw, 60px); line-height: 1.05; color: var(--gold); }
.doc h2 { font-size: 26px; margin: 48px 0 12px; }
.doc h3 { font: 600 17px var(--sans); margin: 24px 0 6px; }
.doc p, .doc li { color: var(--ivory-2); }
.doc strong { color: var(--ivory); }
.doc .eyebrow { font: italic 18px var(--serif); color: var(--gold); margin: 0 0 12px; }
.doc .lede { font: italic 22px/1.45 var(--serif); color: var(--ivory-2); }
.doc .meta { color: var(--ivory-3); font-size: 15px; margin-top: 12px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-top: 1px solid var(--line); color: var(--ivory-2); }
.doc th { color: var(--ivory); font-weight: 600; }
.doc .table { overflow-x: auto; }
.doc details { border-top: 1px solid var(--line); padding: 16px 0; }
.doc details:last-of-type { border-bottom: 1px solid var(--line); }
.doc summary { cursor: pointer; font: 600 17px var(--sans); color: var(--ivory); }
.doc details p { margin: 10px 0 0; }
.gold { color: var(--gold); }

.rest { min-height: 100vh; display: grid; place-content: center; text-align: center; padding: 16px; }
.rest h1 { font: italic 700 clamp(72px, 16vw, 180px)/1 var(--serif); color: var(--gold); }
.rest p { color: var(--ivory-2); }

footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--ivory-3); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 22px; }
footer a { color: var(--ivory-2); text-decoration: none; }
footer a:hover { color: var(--ivory); }

@media (max-width: 720px) {
  .masthead { padding-top: 40px; }
  .programme { padding: 112px 0 64px; }
  .movement { padding: 48px 0; }
  .movement header { gap: 14px; }
  .movement .body { margin-left: 0; }
  .pair { gap: 12px; }
  .phone { padding: 5px; border-radius: 34px; }
  .phone img { border-radius: 29px; }
  .pro { padding: 128px 0 88px; }
  .crescendo li { grid-template-columns: 2.6em 1fr; }
  .crescendo span { grid-column: 2; margin-top: 4px; }
  .history { grid-template-columns: 1fr; gap: 28px; margin-top: 72px; }
  .top nav { display: none; }
}

@media (forced-colors: active) {
  .brand { color: CanvasText; background: none; }
}
