/* Farmshore devlog site. Brand = the Steam art set (Design/farmshore-banner): Lilita One + Nunito, sky -> mint. */
:root {
  --sky: #7ecdea;
  --mint: #9adbc0;
  --leaf: #b9e6a9;
  --forest: #17472e;
  --deep: #0f3320;
  --page: #fbf8f1;
  --card: #ffffff;
  --ink: #1d2b24;
  --muted: #5a6a61;
  --line: #e6e1d5;
  --ks: #05ce78;
  --steam: #1b2838;
  --radius: 14px;
  --wrap: 1120px;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 18px/1.65 "Nunito", "Segoe UI", system-ui, sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--deep); }
:focus-visible { outline: 3px solid var(--deep); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.wordmark { font-family: "Lilita One", "Arial Rounded MT Bold", sans-serif; font-weight: 400; letter-spacing: 1px; }

/* ---------- top bar ---------- */
.topbar { position: absolute; inset: 0 0 auto 0; z-index: 5; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.topbar .brand { color: #fff; font-size: 28px; text-decoration: none; text-shadow: 0 2px 0 rgba(27, 84, 50, .3); }
.topbar nav { display: flex; align-items: center; gap: 22px; }
.topbar nav a:not(.btn) { color: var(--deep); font-weight: 800; text-decoration: none; }
.topbar nav a:not(.btn):hover { text-decoration: underline; }
.topbar.solid { position: static; background: linear-gradient(90deg, var(--sky), var(--mint)); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 0;
  font: 800 17px/1.1 "Nunito", sans-serif; text-decoration: none; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-ks { background: var(--ks); color: var(--deep); box-shadow: 0 4px 0 #04a862; }
.btn-ks:hover { color: var(--deep); box-shadow: 0 5px 0 #04a862; }
.btn-steam { background: var(--steam); color: #fff; box-shadow: 0 4px 0 #0d151d; }
.btn-steam:hover { color: #fff; }
.btn-small { padding: 9px 16px; font-size: 15px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--sky) 0%, var(--mint) 55%, var(--leaf) 100%);
  padding: 120px 0 72px;
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero h1 {
  margin: 0; color: #fff; font-size: clamp(56px, 9vw, 104px); line-height: 1;
  text-shadow: 0 5px 0 rgba(27, 84, 50, .32), 0 16px 34px rgba(27, 84, 50, .38);
}
.hero .subtitle { margin: 10px 0 0; color: var(--forest); font-weight: 800; font-size: 22px; letter-spacing: .3px; }
.hero .tagline { display: flex; align-items: center; gap: 12px; margin: 22px 0 0; color: var(--deep); font-weight: 800; font-size: 20px; }
.hero .tagline::before { content: ""; width: 44px; height: 3px; background: #fff; border-radius: 2px; }
.hero .pitch { margin: 18px 0 0; max-width: 520px; color: var(--deep); font-size: 19px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero .note { margin: 14px 0 0; color: var(--forest); font-size: 15px; font-weight: 700; }

.triptych { position: relative; height: 470px; }
.triptych figure {
  position: absolute; margin: 0; width: 46%; aspect-ratio: 3 / 4.3;
  border: 8px solid #fff; border-radius: 6px; overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 51, 32, .28);
}
.triptych img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.triptych figure:nth-child(1) { left: 0; top: 40px; transform: rotate(-6deg); }
.triptych figure:nth-child(2) { left: 27%; top: 0; transform: rotate(1.5deg); z-index: 2; }
.triptych figure:nth-child(3) { right: 0; top: 56px; transform: rotate(6deg); }

/* ---------- sections ---------- */
section { padding: 72px 0; }
.section-head { max-width: 680px; margin-bottom: 32px; }
.section-head h2 { margin: 0; font-family: "Lilita One", sans-serif; font-weight: 400; font-size: 42px; line-height: 1.1; color: var(--forest); letter-spacing: .5px; }
.section-head p { margin: 10px 0 0; color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(15, 51, 32, .06); }
.feature img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.feature div { padding: 18px 20px 22px; }
.feature h3 { margin: 0 0 6px; font-size: 20px; color: var(--deep); }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }

.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.post-card {
  display: grid; grid-template-columns: 1fr; background: var(--card); border-radius: var(--radius); overflow: hidden;
  color: inherit; text-decoration: none; box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(15, 51, 32, .06);
  transition: transform .15s ease, box-shadow .15s ease;
}
.post-card:hover { color: inherit; transform: translateY(-3px); box-shadow: 0 1px 0 var(--line), 0 14px 32px rgba(15, 51, 32, .12); }
.post-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.post-card .body { padding: 18px 22px 24px; }
.post-card .meta { color: var(--muted); font-size: 14px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; }
.post-card h3 { margin: 6px 0 8px; font-size: 22px; line-height: 1.3; color: var(--deep); }
.post-card p { margin: 0; color: var(--muted); font-size: 16px; }
.post-card .more { display: inline-block; margin-top: 12px; color: var(--forest); font-weight: 800; }
.post-card.featured { grid-column: 1 / -1; grid-template-columns: 1.2fr 1fr; }
.post-card.featured img { height: 100%; aspect-ratio: auto; min-height: 280px; }
.post-card.featured .body { padding: 32px 34px; align-self: center; }
.post-card.featured h3 { font-size: 28px; }

/* ---------- email signup ---------- */
.signup { background: linear-gradient(135deg, var(--forest), var(--deep)); color: #fff; border-radius: 22px; padding: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.signup h2 { margin: 0; font-family: "Lilita One", sans-serif; font-weight: 400; font-size: 36px; line-height: 1.1; letter-spacing: .5px; }
.signup p { margin: 10px 0 0; color: #cfe8db; }
.signup-form { display: flex; flex-wrap: wrap; gap: 10px; }
.signup-form input[type="email"] {
  flex: 1 1 220px; min-width: 0; padding: 14px 18px; border-radius: 999px; border: 2px solid transparent;
  font: 700 17px "Nunito", sans-serif; color: var(--ink); background: #fff;
}
.signup-form input[type="email"]:focus { outline: none; border-color: var(--ks); }
.signup-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.signup-form .fine { flex-basis: 100%; margin: 4px 0 0; font-size: 14px; color: #a9cdb9; }
.signup-form .status { flex-basis: 100%; margin: 4px 0 0; font-weight: 800; color: #fff; }
.signup-fallback { margin: 0; }

/* ---------- article ---------- */
.article { max-width: 740px; margin: 0 auto; padding: 56px 16px 24px; }
.article .meta { color: var(--muted); font-size: 15px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; }
.article h1 { margin: 8px 0 0; font-family: "Lilita One", sans-serif; font-weight: 400; font-size: clamp(36px, 6vw, 52px); line-height: 1.1; color: var(--forest); letter-spacing: .5px; }
.article .lede { font-size: 21px; color: var(--deep); margin: 22px 0 0; }
.article h2 { margin: 44px 0 0; font-size: 28px; line-height: 1.25; color: var(--deep); }
.article p, .article ul { margin: 16px 0 0; }
.article li { margin: 6px 0; }
.article figure { margin: 32px -40px 0; }
.article figure img { border-radius: var(--radius); box-shadow: 0 10px 30px rgba(15, 51, 32, .15); }
.article figcaption { margin-top: 10px; padding: 0 40px; color: var(--muted); font-size: 15px; text-align: center; }
.article .signoff { margin-top: 28px; font-weight: 800; color: var(--deep); }
.back { display: inline-block; margin-bottom: 18px; font-weight: 800; text-decoration: none; }

.cta-box { max-width: 740px; margin: 40px auto 0; padding: 0 16px; }
.cta-box .inner { background: var(--card); border: 2px solid var(--line); border-radius: 20px; padding: 28px; text-align: center; }
.cta-box h2 { margin: 0; font-size: 24px; color: var(--deep); }
.cta-box p { margin: 8px 0 18px; color: var(--muted); }
.cta-box .cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- footer ---------- */
footer { margin-top: 72px; padding: 40px 0 48px; background: var(--deep); color: #cfe8db; font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 32px; align-items: center; }
footer .brand { color: #fff; font-size: 26px; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: #fff; font-weight: 700; }
footer a:hover { color: var(--mint); }
footer .small { flex-basis: 100%; margin: 0; color: #8fb5a1; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .hero { padding: 96px 0 48px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .triptych { height: 360px; max-width: 460px; width: 100%; margin: 8px auto 0; }
  .features { grid-template-columns: 1fr; }
  .post-card.featured { grid-template-columns: 1fr; }
  .post-card.featured img { min-height: 0; aspect-ratio: 16 / 9; }
  .post-card.featured .body { padding: 20px 22px 26px; }
  .signup { grid-template-columns: 1fr; padding: 28px 22px; }
  .article figure { margin: 28px 0 0; }
  .article figcaption { padding: 0; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .topbar nav a:not(.btn) { display: none; }
  .topbar .brand { font-size: 24px; }
  .hero .pitch { font-size: 18px; }
  .hero .cta .btn { flex: 1 1 100%; }
  .triptych { height: 280px; }
  section { padding: 52px 0; }
  .section-head h2 { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .post-card { transition: none; }
}
