/* myYam site: one stylesheet for every page. Colours follow the app's Flat Cap look (mustard, teal, brown);
   headings use the app's own fonts, Shrikhand and Lilita One (SIL Open Font License, in assets/fonts). */
@font-face { font-family: "Shrikhand"; src: url("/assets/fonts/Shrikhand-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Lilita One"; src: url("/assets/fonts/LilitaOne-Regular.ttf") format("truetype"); font-display: swap; }

:root {
  --bg: #fdf6e3;
  --surface: #ffffff;
  --wash: #fbedc2;
  --text: #2b2110;
  --muted: #6b5d45;
  --border: #eadfc2;
  --mustard: #f6b90e;
  --teal: #0f7173;
  --brown: #3a2a10;
  --link: #0f7173;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a150b;
    --surface: #241d0e;
    --wash: #2e2512;
    --text: #f6eedb;
    --muted: #c2b494;
    --border: #3d321b;
    --link: #3fc1c3;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--link); }
img { max-width: 100%; height: auto; }
h1, h2, .brand, .display { font-family: "Lilita One", -apple-system, BlinkMacSystemFont, sans-serif; font-weight: 400; letter-spacing: 0.01em; }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }
.wrap.wide { max-width: 1080px; }

/* Header and footer */
header.site { border-bottom: 1px solid var(--border); background: var(--surface); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; padding-block: 12px; flex-wrap: wrap; }
header.site .brand { display: flex; align-items: center; gap: 10px; color: var(--teal); text-decoration: none; font-size: 26px; }
@media (prefers-color-scheme: dark) { header.site .brand { color: var(--mustard); } }
header.site .brand img { width: 38px; height: 38px; border-radius: 9px; }
header.site nav { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; }
header.site nav a { text-decoration: none; color: var(--muted); }
header.site nav a:hover, header.site nav a[aria-current="page"] { color: var(--text); }

footer.site { border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; padding: 24px 0 40px; }
footer.site .wrap { display: flex; gap: 12px 16px; justify-content: space-between; flex-wrap: wrap; }
footer.site a { color: var(--muted); }
footer.site .links { display: flex; gap: 6px 14px; flex-wrap: wrap; }

/* Home page hero: the Flat Cap splash colours */
.hero { background: var(--mustard); color: var(--brown); padding: 56px 0 64px; overflow-wrap: break-word; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; align-items: center; }
.hero .eyup { font-family: "Shrikhand", Georgia, serif; font-size: clamp(44px, 9vw, 72px); line-height: 1; margin: 0 0 6px; color: var(--brown); }
.hero h1 { font-size: clamp(30px, 5.5vw, 46px); line-height: 1.1; margin: 0 0 14px; }
.hero p { font-size: 19px; margin: 0 0 20px; }
.hero .sub { font-size: 16px; margin: 14px 0 0; }
.hero .shots { display: flex; gap: 12px; justify-content: center; }
.hero .shots img { width: 46%; border-radius: 26px; box-shadow: 0 14px 34px rgba(58, 42, 16, 0.3); }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn { display: inline-block; padding: 10px 20px; border-radius: 999px; background: var(--teal); color: #fff; font-weight: 700; font-size: 16px; text-decoration: none; }
.btn.ghost { background: rgba(58, 42, 16, 0.12); color: var(--brown); }
.badge { display: inline-block; padding: 8px 16px; border-radius: 999px; background: var(--brown); color: var(--mustard); font-weight: 700; font-size: 15px; }

/* Content bands */
.band { padding: 48px 0; border-top: 1px solid var(--border); overflow-wrap: break-word; }
.band.tint { background: var(--surface); }
.band.wash { background: var(--wash); }
.band h2 { font-size: 32px; line-height: 1.15; margin: 0 0 8px; }
.band h3 { font-size: 19px; margin: 22px 0 4px; }
.band p { margin: 8px 0; }
.band ul { margin: 8px 0; padding-left: 22px; }
.band li { margin: 4px 0; }
.lead { font-size: 20px; color: var(--muted); max-width: 46em; margin: 8px 0 0; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; font-weight: 700; color: var(--teal); margin: 0 0 6px; }
@media (prefers-color-scheme: dark) { .eyebrow { color: var(--link); } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split.narrow-shot { grid-template-columns: 1.5fr 1fr; }
.split .media { text-align: center; }
.split.reverse .media { order: -1; }
.shot { border-radius: 16px; border: 1px solid var(--border); box-shadow: 0 10px 30px rgba(58, 42, 16, 0.18); }
.shot.phone { border-radius: 28px; max-width: 300px; width: 100%; }
.shot.widget { border-radius: 22px; max-width: 260px; width: 100%; }
.shot.plain { box-shadow: none; }
figure { margin: 0; }
figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; text-align: center; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 20px; }
.band.tint .card { background: var(--bg); }
.card h3 { margin-top: 0; }
.card p { margin: 0; color: var(--muted); }
.card a.more { display: inline-block; margin-top: 10px; font-weight: 600; text-decoration: none; }

.looks { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 24px; }
.looks figure img { width: 100%; border-radius: 20px; border: 1px solid var(--border); box-shadow: 0 8px 22px rgba(58, 42, 16, 0.16); }
.looks figcaption { font-weight: 600; color: var(--text); }
.looks figcaption span { display: block; font-weight: 400; color: var(--muted); font-style: italic; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 14px 0 0; }
.band .tags li { margin: 0; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); font-size: 14px; }

.note { border-left: 4px solid var(--mustard); background: var(--surface); border-radius: 0 12px 12px 0; padding: 12px 16px; margin: 18px 0; }
.band.tint .note { background: var(--bg); }
.note p { margin: 0; }

.band .say { list-style: none; padding: 0; margin: 12px 0; }
.band .say li { margin: 0 0 8px; padding: 8px 14px; border-radius: 14px; background: var(--wash); font-weight: 600; display: inline-block; margin-right: 6px; }
.band.wash .say li { background: var(--surface); }

/* Inner pages */
.page-head { padding: 44px 0 8px; }
.page-head h1 { font-size: clamp(32px, 5vw, 46px); line-height: 1.1; margin: 0; }
.toc { display: flex; flex-wrap: wrap; gap: 8px 10px; list-style: none; padding: 0; margin: 20px 0 0; }
.toc a { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); text-decoration: none; font-size: 15px; }
main { padding: 8px 0 56px; overflow-wrap: break-word; }
main h2 { font-size: 26px; margin: 36px 0 8px; }
main h3 { font-size: 18px; margin: 24px 0 4px; }
.updated { color: var(--muted); margin: 8px 0 24px; }

ol.steps { counter-reset: step; list-style: none; padding: 0; margin: 16px 0; }
ol.steps > li { counter-increment: step; position: relative; padding: 0 0 18px 50px; margin: 0; }
ol.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--mustard); color: var(--brown); font-weight: 800; line-height: 34px; text-align: center; }
ol.steps h3 { margin: 4px 0 4px; }

details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 16px; margin: 10px 0; }
details summary { cursor: pointer; font-weight: 650; }
details[open] summary { margin-bottom: 6px; }
details p { margin: 6px 0; }

table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--border); }
.table-scroll { overflow-x: auto; }

.cta { text-align: center; }
.cta .badge { margin-top: 14px; }

/* 404 */
.lost { text-align: center; padding: 72px 0; }
.lost .eyup { font-family: "Shrikhand", Georgia, serif; font-size: 64px; margin: 0; color: var(--teal); }
@media (prefers-color-scheme: dark) { .lost .eyup { color: var(--mustard); } }

@media (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .looks { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .hero .wrap, .split, .split.narrow-shot { grid-template-columns: 1fr; gap: 24px; }
  .split.reverse .media { order: 0; }
  .hero { padding: 40px 0 48px; }
  .band { padding: 36px 0; }
  .band h2 { font-size: 27px; }
}
@media (max-width: 620px) {
  .grid-3 { grid-template-columns: 1fr; }
  .looks { grid-template-columns: repeat(2, 1fr); }
}
