@font-face {
  font-family: "Instrument Serif";
  src: url("./assets/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("./assets/fonts/cormorant-garamond-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("./assets/fonts/cormorant-garamond-roman.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Noto Serif SC";
  src: url("./assets/fonts/noto-serif-sc-headings.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  unicode-range: U+4FE1, U+5177, U+529F, U+5DE5, U+603B, U+606F, U+7CFB, U+7EDF, U+80FD, U+89C8;
}

:root {
  color-scheme: light;
  --paper: #fff;
  --surface: #f4f4f4;
  --raised: #fff;
  --soft: #e8e8e8;
  --ink: #191919;
  --muted: #5b5b5b;
  --rule: #d8d8d8;
  --line-strong: #858585;
  --solid: var(--ink);
  --on-solid: var(--paper);
  --accent: #2855d9;
  --accent-ink: #234bbb;
  --accent-fill: #2855d9;
  --on-accent: #fff;
  --accent-wash: color-mix(in srgb, var(--accent) 11%, transparent);
  --accent-line: color-mix(in srgb, var(--accent) 45%, transparent);
  --control-accent: #0675f5;
  --warning: #794900;
  --error: #b52f32;
  --coast-ink: #101e30;
  --coast-link: #103b87;
  --coast-shade: linear-gradient(0deg, rgb(5 19 33 / 58%), transparent 52%);
  --mist: #edf3f3;
  --sky: #dce8ef;
  --catalog-ink: #193544;
  --panel-glass: rgb(247 247 249 / 65%);
  --glass-edge: rgb(45 45 50 / 25%);
  --glass-light: rgb(255 255 255 / 78%);
  --display: "Instrument Serif", Baskerville, Georgia, serif;
  --wordmark: "Cormorant Garamond", Baskerville, Georgia, serif;
  --catalog-type: "Noto Serif SC", "Cormorant Garamond", "Songti SC", "Noto Serif CJK SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --page-width: min(1296px, calc(100% - clamp(36px, 9vw, 144px)));
  font: 16px/1.55 var(--sans);
  color: var(--ink);
  background: var(--paper);
  accent-color: var(--accent);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, input, select { color: inherit; font: inherit; }
button { border: 0; background: transparent; padding: 0; cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: none; text-underline-offset: .23em; }
button, summary, a, select { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
:where(a, button, input, select, summary, [tabindex="-1"]):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { color: var(--ink); background: color-mix(in srgb, var(--accent) 25%, var(--raised)); }
[hidden] { display: none !important; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { flex: none; width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link:focus { position: absolute; z-index: 3; inset: 8px auto auto 8px; padding: 8px 16px; color: var(--ink); background: var(--paper); }
.content-width, .masthead { width: var(--page-width); margin-inline: auto; }

.masthead, .masthead nav, .brand { display: flex; align-items: center; }
.masthead { min-height: 64px; gap: 26px; }
body:has(#landing:not([hidden])) .masthead {
  position: absolute; inset: 0 0 auto; z-index: 1;
  color: var(--coast-ink); background: transparent;
}
body:has(#landing:not([hidden])) .languages a { color: var(--coast-link); }
body:has(#landing:not([hidden])) .brand img { filter: brightness(0) saturate(100%) invert(22%) sepia(88%) saturate(2900%) hue-rotate(219deg); }
.brand { gap: 9px; width: fit-content; min-height: 44px; }
.brand img { width: 37px; height: auto; }
.brand span, .pitch h1 {
  font: italic 600 1em/.9 var(--wordmark); letter-spacing: -.045em;
}
.brand span { font-size: 31px; letter-spacing: -.035em; }
.masthead nav { margin-inline-start: auto; gap: clamp(16px, 2vw, 32px); }
.masthead nav a, .languages a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.languages a { color: var(--accent-ink); white-space: nowrap; }
.short-label { display: none; }

#landing {
  --photo-edge: clamp(6rem, 11vw, 10rem);
  --photo-overlap: calc(var(--photo-edge) * .55);
  isolation: isolate;
  background: linear-gradient(160deg, var(--mist) 32%, var(--sky));
}
.hero {
  position: relative;
  display: grid; align-items: end;
  min-height: 100vh; min-height: 100svh;
  padding-block: 104px clamp(44px, 8svh, 100px);
  color: #fff;
}
.hero::before, .closing-scene {
  position: absolute; inset-inline: 0; pointer-events: none;
  mask-image: linear-gradient(var(--fade-direction), transparent,
    rgb(0 0 0 / 12%) calc(var(--photo-edge) * .24),
    rgb(0 0 0 / 80%) calc(var(--photo-edge) * .72), black var(--photo-edge));
}
.hero::before {
  --fade-direction: to top;
  content: ""; top: 0; bottom: calc(0px - var(--photo-overlap));
  background:
    radial-gradient(ellipse 64% 59% at 8% 74%, rgb(5 24 40 / 47%) 20%, rgb(5 24 40 / 31%) 54%, transparent),
    var(--coast-shade), #6588a6 url("./assets/coast.webp") var(--coast-position, 28% 54%) / cover no-repeat;
}
.pitch { position: relative; }
.pitch h1 { font-size: clamp(112px, 13.5vw, 202px); }
.purpose { margin-block-start: clamp(16px, 2.2vh, 26px); max-width: 38ch; font-size: clamp(18px, 1.45vw, 23px); font-weight: 450; line-height: 1.5; text-wrap: pretty; }
.pitch .download { margin-block-start: clamp(18px, 2.5vh, 32px); }
.download {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 9px 21px; border-radius: 99px;
  background: var(--accent-fill); color: var(--on-accent); font-size: 15px; font-weight: 600;
  scroll-margin-block-start: 85svh;
}
.download .icon { width: 17px; height: 17px; }
.download:focus-visible { outline-color: #fff; }
[data-mac-download][aria-busy="true"] { cursor: progress; }

.home-catalog {
  position: relative; z-index: 1; width: min(66rem, var(--page-width));
  padding-block: clamp(60px, 7vw, 108px); scroll-margin-block-start: clamp(24px, 5svh, 48px);
  color: var(--catalog-ink);
}
.home-catalog h2, .home-catalog .catalog-group h3 {
  font-family: var(--catalog-type); font-weight: 600;
}
.home-catalog h2 { font-size: clamp(38px, 4.5vw, 64px); letter-spacing: .045em; line-height: 1.18; }
.home-catalog h2:lang(en) { font-size: clamp(46px, 5.6vw, 80px); letter-spacing: -.035em; line-height: 1; }
.home-catalog .catalog-list { margin-block: clamp(24px, 2.6vw, 38px) 0; }
.home-catalog .catalog-group h3 { margin-bottom: .4rem; font-size: 22px; line-height: 1.25; letter-spacing: .055em; }
.home-catalog .catalog-group h3:lang(en) { font-size: 27px; letter-spacing: -.01em; }
.home-catalog .catalog-group h3 small { font-family: var(--sans); letter-spacing: 0; }
.home-catalog .searchbox { background: color-mix(in srgb, var(--catalog-ink) 7%, transparent); }
.home-catalog .searchbox input::placeholder { color: var(--muted); opacity: 1; }
.home-catalog .catalog-group a .icon { width: 1rem; height: 1rem; }
.manual-link { display: inline-flex; align-items: center; gap: .5em; min-height: 44px; font-size: 17px; font-weight: 550; }
.manual-link .icon { width: 1em; height: 1em; }
.manual-link:focus-visible { outline-color: currentColor; }
.site-footer {
  position: relative; isolation: isolate;
  display: grid; align-items: end; min-height: clamp(17.5rem, 34vw, 30rem);
  color: #fff;
}
.closing-scene {
  --fade-direction: to bottom;
  top: calc(0px - var(--photo-overlap)); bottom: 0;
  isolation: isolate; background: #476d89;
}
.closing-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 68% 18%; filter: saturate(.65);
}
.closing-scene::before, .closing-scene::after {
  content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none;
}
.closing-scene::before {
  mix-blend-mode: screen;
  background: linear-gradient(180deg, #638bd0, #7593b9 42%, #355a79 75%, #24445e);
  mask-image: linear-gradient(105deg, black 35%, rgb(0 0 0 / 75%) 72%, rgb(0 0 0 / 60%));
}
.closing-scene::after {
  background: var(--coast-shade),
    radial-gradient(ellipse 92% 57% at 17% 98%, rgb(5 22 39 / 32%) 30%, transparent);
}
.footer-info {
  position: relative; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 24px;
  padding-block: clamp(20px, 2.8vw, 42px);
}
.closing-requirements { font-size: 13px; line-height: 1.5; }

@media (hover: hover) {
  .masthead nav a:hover { color: var(--accent-ink); }
  .manual-link:hover { text-decoration: underline; }
  .download:hover { background: color-mix(in srgb, var(--accent-fill) 90%, black); }
}
@media (max-width: 740px) {
  :root { --page-width: calc(100% - clamp(32px, 8vw, 54px)); }
  .masthead { min-height: 56px; gap: 16px; }
  .masthead nav { gap: 16px; }
  .brand { gap: 7px; }
  .brand img { width: 30px; }
  .brand span { font-size: 28px; }
  .pitch h1 { font-size: clamp(88px, 21vw, 142px); }
  .purpose { margin-top: 14px; font-size: 17px; }
  .pitch .download { margin-top: 16px; }
  .download { padding: 8px 17px; }
}
@media (max-aspect-ratio: 3/4) {
  .hero::before { --coast-position: 24% center; }
}
@media (max-width: 720px) {
  .home-catalog .catalog-group ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(10px, 3vw, 20px); }
  .home-catalog .catalog-group a { max-width: 100%; gap: .45rem; font-size: 15px; }
  .home-catalog .catalog-group a span { overflow-wrap: anywhere; }
}
@media (max-width: 560px) {
  .footer-info { flex-direction: column; align-items: flex-start; }
  .closing-photo { object-position: 50% 41%; }
  .masthead, .masthead nav { gap: 12px; }
  .masthead nav a, .languages a { font-size: 13px; }
  .wide-label { display: none; }
  .short-label { display: inline; }
}
@media (max-width: 380px) {
  .masthead { width: calc(100% - 20px); }
  .masthead, .masthead nav { gap: 7px; }
  .masthead .brand { gap: 4px; }
  .masthead .brand img { width: 23px; }
  .masthead .brand span { font-size: 25px; }
  .masthead nav a, .languages a { font-size: 12px; }
}
@media (prefers-reduced-transparency: reduce) {
  body:has(#landing:not([hidden])) .masthead { background: var(--paper); color: var(--ink); }
  body:has(#landing:not([hidden])) .languages a { color: var(--accent-ink); }
}
