/* Y&T Soft — one stylesheet for every page on the site.
   The faces are the ones Aquila is set in, served from this site and nowhere else. */

@font-face { font-family: 'IM Fell English'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/im-fell-english-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'IM Fell English'; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/im-fell-english-latin-400-italic.woff2) format('woff2'); }
@font-face { font-family: 'Alegreya Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/alegreya-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Alegreya Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/alegreya-sans-latin-700-normal.woff2) format('woff2'); }

:root {
  --paper: #e3e5d8; --panel: #eff0e6; --ink: #1f261d; --muted: #5b6455; --rule: #b7bcaa;
  --verdigris: #2a6b5f; --madder: #7d3560; --brass: #8a6618; --blood: #9b1c18;
  --on-accent: #eff0e6;
  --serif: 'IM Fell English', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --sans: 'Alegreya Sans', 'Gill Sans', 'Trebuchet MS', Verdana, sans-serif;
  --cjk: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', 'Source Han Sans SC', 'Hiragino Sans GB', sans-serif;
  --measure: 1040px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1b201b; --panel: #242a24; --ink: #e1e3d4; --muted: #9aa18f; --rule: #3d463b;
    --verdigris: #6dc2ae; --madder: #d78fbb; --brass: #d6b15a; --blood: #e2584c;
    --on-accent: #1b201b;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--verdigris); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--madder); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0; }
p { margin: 0 0 1em; }
.zh { font-family: var(--cjk); font-size: .92em; }

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 24px; }
@media (max-width: 560px) { .wrap { padding: 0 16px; } }

/* ---- the masthead every page shares ---- */
.mast { border-bottom: 1.5px solid var(--ink); }
.mast .wrap { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 14px; }
.mark { font-family: var(--serif); font-size: 1.7rem; color: var(--ink); text-decoration: none; letter-spacing: .01em; }
.mark:hover { color: var(--ink); }
.mark .amp { font-style: italic; color: var(--madder); padding: 0 .04em; }
.mast nav { display: flex; gap: 18px; font-size: .95rem; }
.mast nav a { color: var(--muted); text-decoration: none; }
.mast nav a:hover, .mast nav a[aria-current] { color: var(--ink); }

/* ---- the studio's front page ---- */
.lede { padding: 64px 0 40px; }
.lede h1 { font-size: clamp(2.6rem, 7vw, 4.2rem); }
.lede h1 .amp { font-style: italic; color: var(--madder); }
.lede p { max-width: 36em; margin-top: 16px; font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--muted); }

.section-title { display: flex; align-items: baseline; gap: 14px; font-size: 1.5rem; margin: 8px 0 18px; }
.section-title::after { content: ''; flex: 1; border-top: 1px solid var(--rule); transform: translateY(-.3em); }

.titles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin-bottom: 72px; }
.card { background: var(--panel); border: 1px solid var(--rule); border-top: 3px solid var(--verdigris); display: flex; flex-direction: column; }
.card .shot { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--rule); background: var(--paper); }
.card .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { font-size: 1.8rem; }
.card h3 a { color: inherit; text-decoration: none; }
.card .tag { font-family: var(--serif); font-style: italic; color: var(--muted); margin: 0; }
.card .facts { font-size: .88rem; color: var(--muted); margin: 0; }
.card .go { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; padding-top: 6px; }
.card.soon { border-style: dashed; border-top-width: 1px; border-top-color: var(--rule); background: transparent; justify-content: center; align-items: center; text-align: center; min-height: 240px; padding: 24px; }
.card.soon h3 { font-size: 1.4rem; color: var(--muted); }
.card.soon p { color: var(--muted); font-size: .92rem; margin: 8px 0 0; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--ink); border-radius: 3px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: .98rem; }
.btn:hover { color: var(--ink); background: var(--paper); }
.btn.primary { background: var(--verdigris); border-color: var(--verdigris); color: var(--on-accent); }
.btn.primary:hover { color: var(--on-accent); filter: brightness(1.08); }
.btn.big { min-height: 52px; padding: 0 26px; font-size: 1.1rem; }

/* ---- a title's own page ---- */
.hero { padding: 52px 0 28px; display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: end; }
.hero h1 { font-size: clamp(3rem, 9vw, 5.2rem); }
.hero .tag { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--muted); margin: 10px 0 0; max-width: 30em; }
.hero .act { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.hero .act small { color: var(--muted); font-size: .86rem; }
@media (max-width: 720px) { .hero { grid-template-columns: 1fr; } }

.plate { margin: 0 0 12px; border: 1px solid var(--rule); background: var(--panel); }
.caption { font-size: .88rem; color: var(--muted); margin: 0 0 48px; }

.facts-row { display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 14px 0; margin: 0 0 44px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-size: .95rem; }
.facts-row b { font-weight: 700; margin-right: 6px; }

.prose { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 48px; margin-bottom: 36px; }
.prose > * { min-width: 0; }
@media (max-width: 820px) { .prose { grid-template-columns: 1fr; } }
.prose h2 { font-size: 1.6rem; margin: 0 0 12px; }
.prose p.opening { font-family: var(--serif); font-size: 1.22rem; line-height: 1.5; }
.modelled { list-style: none; padding: 0; margin: 0 0 28px; }
.modelled li { padding: 10px 0; border-top: 1px dashed var(--rule); }
.modelled li:first-child { border-top: 0; padding-top: 0; }
.modelled b { font-family: var(--serif); font-weight: 400; font-size: 1.12rem; display: block; color: var(--madder); }
.steps { padding-left: 1.3em; margin: 0 0 28px; }
.steps li { margin-bottom: 8px; padding-left: 4px; }
.steps li::marker { font-family: var(--serif); color: var(--madder); }
.note { background: var(--panel); border-left: 3px solid var(--brass); padding: 12px 16px; font-size: .95rem; margin: 0 0 28px; }
.note p:last-child { margin: 0; }
.again { margin: 0 0 56px; }
.hero .act small a { color: inherit; }

/* ---- downloads ---- */
.downloads { border-top: 1px solid var(--rule); padding-top: 32px; margin: 12px 0 40px; scroll-margin-top: 16px; }
.downloads h2 { font-size: 1.8rem; margin: 0 0 8px; }
.dl-lede { color: var(--muted); max-width: 44em; }
.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 18px 0 14px; }
.dl { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: var(--panel); border: 1px solid var(--rule); border-left: 3px solid var(--verdigris); border-radius: 2px; color: var(--ink); text-decoration: none; }
.dl:hover { color: var(--ink); border-color: var(--verdigris); }
.dl b { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; }
.dl span { font-size: .9rem; color: var(--muted); }
.dl small { font-size: .85rem; color: var(--verdigris); font-weight: 700; margin-top: 4px; }
/* ---- where the players are ---- */
.community { border-top: 1px solid var(--rule); padding-top: 32px; margin: 12px 0 40px; }
.community h2 { font-size: 1.8rem; margin: 0 0 8px; }
.community p { max-width: 44em; color: var(--muted); }
.community-go { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.support { border-top: 1px solid var(--rule); padding-top: 32px; margin: 12px 0 40px; }
.support h2 { font-size: 1.8rem; margin: 0 0 8px; }
.support > p:first-of-type { max-width: 44em; color: var(--muted); }
.ways { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15em, 1fr)); gap: 12px 28px; }
.ways li { border-top: 1px dashed var(--rule); padding-top: 10px; color: var(--muted); }
.ways b { font-family: var(--serif); font-weight: 400; font-size: 1.12rem; display: block; color: var(--madder); }
.dl-note { font-size: .88rem; color: var(--muted); max-width: 44em; }
kbd { font: .85em var(--sans); border: 1px solid var(--rule); border-bottom-width: 2px; border-radius: 3px; padding: 0 5px; background: var(--panel); }

/* ---- the foot every page shares ---- */
.foot { border-top: 1px solid var(--rule); margin-top: 24px; }
.foot .wrap { padding-top: 20px; padding-bottom: 36px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: .86rem; color: var(--muted); }
.foot a { color: var(--muted); }

/* ---- 404 ---- */
.lost { padding: 96px 0 120px; }
.lost h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); }
.lost p { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--muted); margin: 14px 0 28px; }

/* ---- the manual ---- */
.manual { padding-bottom: 24px; }
.crumbs { font-size: .9rem; color: var(--muted); margin: 28px 0 0; }
.crumbs a { color: var(--muted); }
.chapter { max-width: 46em; padding: 28px 0 8px; }
.chapter h1 { font-size: clamp(2.4rem, 6vw, 3.4rem); margin: 0 0 20px; }
.chapter h2 { font-size: 1.7rem; margin: 40px 0 12px; }
.chapter h3 { font-size: 1.3rem; margin: 28px 0 8px; }
.chapter h4 { font-size: 1.1rem; margin: 22px 0 6px; }
.chapter h2, .chapter h3, .chapter h4 { scroll-margin-top: 16px; }
.chapter ul, .chapter ol { padding-left: 1.4em; margin: 0 0 1em; }
.chapter li { margin-bottom: 6px; }
.chapter li::marker { color: var(--madder); }
.chapter strong { font-weight: 700; }
.chapter code { font: .88em ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; background: var(--panel); border: 1px solid var(--rule); border-radius: 3px; padding: 0 4px; }
.chapter pre { background: var(--panel); border: 1px solid var(--rule); border-radius: 3px; padding: 12px 14px; overflow-x: auto; }
.chapter pre code { border: 0; padding: 0; background: none; }
.chapter blockquote { margin: 0 0 1em; padding: 4px 16px; border-left: 3px solid var(--brass); background: var(--panel); }
.chapter hr { border: 0; border-top: 1px solid var(--rule); margin: 32px 0; }
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; border: 1px solid var(--rule); background: var(--panel); }
.chapter table { border-collapse: collapse; font-size: .9rem; width: 100%; }
.chapter th, .chapter td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.chapter th { font-weight: 700; white-space: nowrap; }
.chapter tbody tr:last-child td { border-bottom: 0; }
.pager { max-width: 46em; display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: end; border-top: 1px solid var(--rule); padding-top: 18px; margin-top: 24px; }
.pager a { text-decoration: none; font-family: var(--serif); font-size: 1.1rem; }
.pager small { display: block; font-family: var(--sans); font-size: .8rem; color: var(--muted); }
.pager .next { text-align: right; }
.pager .up { font-family: var(--sans); font-size: .9rem; color: var(--muted); }
