/* Service Journal -- the site's only stylesheet.
   Laid out like hivejournalai.com (Matthew's own site): a dark strip, a
   sticky top bar, a big serif hero, ruled sections, screenshot cards, a
   "Need a hand?" panel and a dark footer. Service Journal's colours.
   System fonts only (Georgia and the system UI font, as the Hive site uses):
   no web fonts, no CDNs, no scripts. */

:root {
  --ink: #1F2421;        /* h1 and h3 */
  --body: #4E534C;       /* body text: softer than headings, as on the Hive site */
  --head2: #2F4A3A;      /* section headings (h2): green */
  --muted: #4E534C;      /* secondary */
  --green: #2F4A3A;      /* links, buttons */
  --link: #2F4A3A;
  --panel: #E4EBE5;      /* light green panels */
  --panel-line: #C9D6CC;
  --orange: #B4561A;     /* white text only */
  --line: #D9D3C5;       /* borders */
  --bg: #F4F1EA;         /* paper */
  --card: #FFFFFF;
  --strip: #1F2421;
  --strip-text: #E4EBE5;
  --strip-link: #E4EBE5;
  --nav-bg: rgba(244, 241, 234, 0.94);
  --footer: #1F2421;
  --footer-text: #B8B3A8;
  --footer-link: #ECE8DF;
  --shadow: rgba(31, 36, 33, 0.18);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #ECE8DF;
    --body: #C4BFB4;
    --head2: #9CC6A8;
    --muted: #B8B3A8;
    --green: #3D6A4F;
    --link: #9CC6A8;
    --panel: #233328;
    --panel-line: #34493B;
    --line: #343A34;
    --bg: #161A17;
    --card: #1F2420;
    --strip: #0E110F;
    --strip-text: #B8B3A8;
    --strip-link: #9CC6A8;
    --nav-bg: rgba(22, 26, 23, 0.94);
    --footer: #0E110F;
    --footer-text: #A8A398;
    --footer-link: #ECE8DF;
    --shadow: rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--body); font: 17px/1.75 Georgia, "Iowan Old Style", serif; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -0.01em; font-weight: 700; }
h2 { color: var(--head2); }
a { color: var(--link); }
img { max-width: 100%; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.ui { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.eyebrow { font: 13px/1 -apple-system, BlinkMacSystemFont, sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* The strip and the top bar */
.strip { background: var(--strip); color: var(--strip-text); font: 13px/1.4 -apple-system, BlinkMacSystemFont, sans-serif; letter-spacing: 0.06em; text-align: center; padding: 11px 16px; }
.strip a { color: var(--strip-link); text-decoration: underline; }
nav.top { position: sticky; top: 0; background: var(--nav-bg); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); z-index: 10; }
nav.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.logo img { width: 34px; height: 34px; border-radius: 8px; }
nav.top .links { display: flex; gap: 22px; }
nav.top a.nl { font: 15px/1 -apple-system, BlinkMacSystemFont, sans-serif; text-decoration: none; color: var(--body); }

/* The hero */
.hero { padding: 76px 0 64px; border-bottom: 1px solid var(--line); }
.hero .wrap { position: relative; min-height: 360px; }
.hero .wrap > * { position: relative; z-index: 1; }
.hero .wrap::after { content: ""; position: absolute; top: 50%; right: 24px; transform: translateY(-50%); width: min(30%, 300px); aspect-ratio: 1; background: url("hero.png") center / contain no-repeat; z-index: 0; pointer-events: none; }
.hero h1 { font-size: clamp(34px, 5vw, 52px); max-width: 15ch; margin: 14px 0 18px; }
.hero p { font-size: 20px; max-width: 52ch; }
.pills { margin-top: 26px; font: 14px/1.9 -apple-system, BlinkMacSystemFont, sans-serif; color: var(--muted); max-width: 32rem; }
.hero.page-title { padding: 64px 0 40px; }
.hero.page-title .wrap { min-height: 0; }
.hero.page-title .wrap::after { display: none; }
.hero.page-title h1 { font-size: clamp(30px, 4.5vw, 44px); max-width: none; margin: 0 0 14px; }
.date { font: 14px/1 -apple-system, BlinkMacSystemFont, sans-serif; color: var(--muted); }

/* Sections */
.sec { padding: 72px 0; border-bottom: 1px solid var(--line); }
.sec h2 { font-size: clamp(26px, 3.2vw, 34px); margin-bottom: 16px; }
.sec p { margin-bottom: 14px; }
.sec p:last-child { margin-bottom: 0; }
ul { margin: 0 0 14px 1.2rem; }
li { margin-bottom: 7px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; margin-top: 40px; }
.three h3 { font-size: 21px; margin-bottom: 10px; }
.tags { margin-top: 14px; font: 13px/1 -apple-system, BlinkMacSystemFont, sans-serif; color: var(--muted); }
.tags span { display: inline-block; border: 1px solid var(--line); border-radius: 99px; padding: 6px 13px; margin: 0 6px 6px 0; }

/* Screenshots */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 44px; }
.shot { background: var(--panel); border: 1px solid var(--panel-line); border-radius: 16px; padding: 18px; text-align: center; }
.shot img { width: 100%; height: auto; border-radius: 11px; display: block; border: 1px solid var(--line); box-shadow: 0 6px 18px var(--shadow); }
.shot h3 { font-size: 18px; margin: 16px 0 6px; }
.shot p { font-size: 15px; color: var(--muted); line-height: 1.6; }

/* Cards and the support panel */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px; margin: 0; }
.card p:last-child { margin-bottom: 0; }
.note { background: var(--panel); border: 1px solid var(--panel-line); border-radius: 18px; padding: 44px; text-align: center; }
.note h2 { margin-bottom: 12px; }
.note p { max-width: 48ch; margin: 0 auto 20px; }
.btn { display: inline-block; background: var(--orange); color: #FFFFFF; text-decoration: none; font: 16px/1.2 -apple-system, BlinkMacSystemFont, sans-serif; padding: 15px 26px; border-radius: 99px; overflow-wrap: anywhere; }
.btn.quiet { background: var(--green); }

/* Privacy and Support: the Hive privacy page's exact values. */
.narrow h1, .narrow h2, .narrow h3 { line-height: 1.2; letter-spacing: 0; }
.narrow .wrap { max-width: 44rem; padding: 0 24px; }
.narrow .hero.page-title { padding: 64px 0 40px; }
.narrow .hero.page-title h1 { font-size: clamp(30px, 4.5vw, 44px); margin-bottom: 14px; }
.narrow .sec { padding: 44px 0; }
.narrow .sec h2 { font-size: 24px; margin-bottom: 16px; }
.narrow .sec h3 { font-size: 19px; margin: 26px 0 8px; }
.narrow .sec p { margin-bottom: 14px; }
.narrow .card p:last-child { margin-bottom: 0; }
.narrow ul { margin: 0 0 14px 1.2rem; }
.narrow li { margin-bottom: 7px; }
.narrow .card { padding: 28px; border-radius: 16px; margin: 24px 0; }
.narrow .card h2 { margin-bottom: 16px; }

/* The footer */
footer { background: var(--footer); color: var(--footer-text); padding: 44px 0; font: 15px/1.8 -apple-system, BlinkMacSystemFont, sans-serif; }
footer a { color: var(--footer-link); text-decoration: none; margin-right: 24px; }
footer .copy { margin-top: 18px; }
footer .copy a { margin: 0; text-decoration: underline; }

/* Beside the icon, the hero's text keeps to the left. */
@media (min-width: 721px) {
  .hero:not(.page-title) .wrap > * { max-width: 62%; }
}

@media (max-width: 720px) {
  .hero { padding: 52px 0 44px; }
  .hero .wrap { min-height: 0; }
  .hero .wrap::after { display: none; }
  .hero p { font-size: 18px; }
  .sec { padding: 52px 0; }
  .three { grid-template-columns: 1fr; gap: 34px; }
  .shots { grid-template-columns: 1fr; max-width: 360px; margin-left: auto; margin-right: auto; }
  .note { padding: 32px 20px; }
  .card { padding: 22px; }
  nav.top .links { gap: 16px; }
  .logo { font-size: 17px; }
}
