/* Couchwork blog — shares the palette, type and components of couchwork.co.uk */
:root {
  --aubergine: #0e3b43;
  --aubergine-dark: #0a2c33;
  --purple: #0f7c8a;
  --ai: #b7791f;
  --green: #c8552d;
  --bg: #ffffff;
  --alt: #f6f2ea;
  --text: #1d1c1d;
  --muted: #5e5c5f;
  --border: #e6e0d4;
  --card: #ffffff;
  --accent: #0f7c8a;
  --radius: 14px;
  --shadow: 0 20px 50px -20px rgba(14, 59, 67, .35);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11171a; --alt: #151d22; --text: #eef5f6; --muted: #9fb0b5;
    --border: #26343a; --card: #18232a; --accent: #5fc0cf;
    --shadow: 0 20px 50px -20px rgba(0, 0, 0, .7);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
code { font-family: ui-monospace, Menlo, monospace; font-size: .88em; background: rgba(183, 121, 31, .12); padding: 1px 6px; border-radius: 5px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 32px); margin-inline: auto; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; text-decoration: none; }
.brand small { font-weight: 600; color: var(--muted); font-size: .95rem; letter-spacing: 0; padding-left: 10px; border-left: 1px solid var(--border); }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--text); }
.nav-links a.btn { color: #fff; }

/* buttons */
.btn { display: inline-block; text-decoration: none; font-weight: 600; border-radius: 10px; padding: 10px 18px; border: 1px solid transparent; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 6px 18px -6px rgba(200, 85, 45, .6); }
.btn-primary:hover { background: #b04624; }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.btn-lg { padding: 14px 24px; font-size: 1.02rem; }
.btn-sm { padding: 7px 14px; font-size: .9rem; }

/* hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #17717e 0%, transparent 60%), linear-gradient(180deg, var(--aubergine) 0%, var(--aubergine-dark) 100%); color: #fff; padding: 80px 0 88px; }
.hero .pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); padding: 6px 14px; border-radius: 999px; font-size: .85rem; margin: 0 0 22px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #2bac76; box-shadow: 0 0 0 3px rgba(43, 172, 118, .3); }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.1; letter-spacing: -.03em; margin: 0 0 20px; font-weight: 800; }
.grad { background: linear-gradient(90deg, #ffd3b0, #ff9f7a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.15rem; color: #e6e0d4; margin: 0; max-width: 620px; }

/* sections */
.section { padding: 72px 0 96px; }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 700; color: var(--purple); margin: 0 0 10px; }
@media (prefers-color-scheme: dark) { .eyebrow { color: #8fd3dd; } }
h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); line-height: 1.2; letter-spacing: -.02em; margin: 2.2em 0 .5em; font-weight: 800; }
h3 { margin: 0 0 8px; font-size: 1.1rem; }

/* post grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--alt); border-bottom: 1px solid var(--border); }
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.tag { position: absolute; left: 14px; top: 14px; z-index: 1; background: rgba(255, 255, 255, .95); color: #0a2c33; font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.post-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card h3 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -.01em; margin: 0; }
.post-card p { margin: 0; color: var(--muted); font-size: .96rem; }
.meta { color: var(--muted); font-size: .85rem; margin-top: auto; padding-top: 6px; }
.post-card.feature { grid-column: 1 / -1; flex-direction: row; }
.post-card.feature .thumb { flex: 1.25; aspect-ratio: auto; min-height: 320px; }
.post-card.feature .body { flex: 1; justify-content: center; padding: 36px; }
.post-card.feature h3 { font-size: 1.7rem; }

/* article */
.article-head { background: radial-gradient(1000px 420px at 85% -20%, #17717e 0%, transparent 60%), linear-gradient(180deg, var(--aubergine) 0%, var(--aubergine-dark) 100%); color: #fff; padding: 64px 0 56px; }
.article-head .crumb { display: inline-block; color: #a8dde6; text-decoration: none; font-size: .9rem; margin-bottom: 22px; }
.article-head .crumb:hover { color: #fff; }
.article-head h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
.article-head .meta { color: #c4d6d9; margin: 0; padding: 0; }
.article-head .eyebrow { color: #a8dde6; }

.article { padding: 56px 0 24px; font-size: 1.1rem; }
.article p, .article ul { margin: 0 0 1.2em; }
.article ul { padding-left: 1.2em; }
.article li { margin-bottom: .5em; }
.article h2 { margin-top: 2em; }
.article .lede { font-size: 1.3rem; line-height: 1.55; color: var(--text); font-weight: 500; }
.article em { font-style: italic; }
.mention { background: rgba(15, 124, 138, .15); color: var(--purple); border-radius: 4px; padding: 0 4px; font-weight: 600; }
@media (prefers-color-scheme: dark) { .mention { color: #8fd3dd; } }

.shot { margin: 2em -60px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.shot.tall { max-width: 440px; margin-inline: auto; }
.shot-bar { display: flex; gap: 7px; padding: 10px 14px; background: var(--aubergine-dark); }
.shot-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.shot-bar i:nth-child(2) { background: #febc2e; } .shot-bar i:nth-child(3) { background: #28c840; }
.shot figcaption { padding: 12px 18px; color: var(--muted); font-size: .88rem; border-top: 1px solid var(--border); }
@media (max-width: 860px) { .shot { margin-inline: 0; } }

.pull { margin: 2em 0; padding: 6px 0 6px 24px; border-left: 4px solid var(--green); font-size: 1.4rem; line-height: 1.4; font-weight: 700; letter-spacing: -.01em; }

.benefits { margin: 2.5em 0 0; padding: 28px 30px; background: var(--alt); border: 1px solid var(--border); border-radius: var(--radius); font-size: 1rem; }
.benefits h3 { font-size: 1.15rem; margin-bottom: 16px; }
.benefits ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.benefits li { position: relative; padding-left: 32px; margin: 0; }
.benefits li::before { content: '✓'; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: #2bac76; color: #fff; display: grid; place-items: center; font-size: .8rem; font-weight: 700; }

.mail { margin: 1.6em 0; padding: 18px 22px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); font-size: 1rem; }
.mail small { display: block; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
.mail p { margin: 0 0 .7em; }
.mail p:last-child { margin: 0; }

.chat { margin: 1.6em 0; padding: 22px; background: linear-gradient(135deg, #071f24, #0e3b43 60%, #17525c); border-radius: 18px; display: grid; gap: 12px; color: #fff; font-size: 1rem; }
.chat .bubble p { margin: 0 0 6px; } .chat .bubble p:last-child { margin: 0; }
.chat .q { justify-self: end; background: #0f7c8a; padding: 12px 16px; border-radius: 14px 14px 4px 14px; max-width: 88%; }
.chat .a { background: rgba(255, 255, 255, .1); padding: 14px 16px; border-radius: 14px 14px 14px 4px; max-width: 94%; }
.chat .a em { font-style: normal; color: #ffd3b0; font-weight: 600; }
.chat .step { color: #a8dde6; font-size: .9rem; }
.chat .mention { background: rgba(255, 255, 255, .18); color: #fff; }

/* more stories */
.more { padding: 56px 0 96px; }
.more h2 { margin-top: 0; }
.more .grid { grid-template-columns: repeat(3, 1fr); }
.cta-band { margin-top: 64px; background: linear-gradient(135deg, #071f24, #0e3b43 60%, #17525c); color: #fff; border-radius: 20px; padding: 44px 40px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 6px; font-size: 1.6rem; }
.cta-band p { margin: 0; color: #d3e6e9; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* footer */
.footer { border-top: 1px solid var(--border); padding: 36px 0; }
.foot-inner { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.foot-inner p { margin: 0; color: var(--muted); font-size: .9rem; max-width: 640px; }

@media (max-width: 920px) {
  .grid, .more .grid { grid-template-columns: repeat(2, 1fr); }
  .post-card.feature { flex-direction: column; }
  .post-card.feature .thumb { min-height: 0; aspect-ratio: 16 / 10; flex: none; }
  .post-card.feature .body { padding: 22px 24px 26px; }
  .post-card.feature h3 { font-size: 1.4rem; }
}
@media (max-width: 640px) {
  .grid, .more .grid { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
  .brand small { display: none; }
  .hero { padding: 56px 0 64px; }
  .article { font-size: 1.04rem; }
  .article .lede { font-size: 1.17rem; }
  .pull { font-size: 1.2rem; }
  .cta-band { padding: 32px 24px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
