/* nuthouse94.com — refined family homepage */

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #e9eef4;
  --paper: #ffffff;
  --ink: #1e2d3a;
  --muted: #607689;
  --accent: #3c8a1c;        /* logo green */
  --accent-2: #2c6a13;
  --green-hi: #7ac943;
  --steel-lo: #557faa;
  --steel-mid: #3a5c7e;
  --steel-hi: #21405f;
  --line: #e0e8f0;
  --shadow-sm: 0 1px 3px rgba(20, 45, 70, 0.08);
  --shadow-md: 0 6px 20px rgba(20, 45, 70, 0.10);
  --shadow-lg: 0 18px 40px rgba(20, 45, 70, 0.16);
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--sans);
  background:
    radial-gradient(90% 60% at 50% -10%, #f3f7fb 0%, transparent 60%),
    var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: var(--ink);
}
a { color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
a:hover { color: var(--accent-2); }

/* ---------- Header ---------- */
.site-head {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px 20px;
  padding: 14px 28px;
  background: linear-gradient(180deg, var(--steel-lo), var(--steel-hi));
  border-bottom: 4px solid var(--accent);
  box-shadow: var(--shadow-md);
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-logo { display: block; height: 60px; width: auto; filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); }
.brand-tag {
  color: #d6e6f5; font-size: 13px; font-family: var(--sans);
  letter-spacing: .04em; border-left: 1px solid rgba(255,255,255,.25); padding-left: 14px;
}
.site-head nav { display: flex; align-items: center; gap: 20px; font-family: var(--sans); font-size: 15px; }
.site-head nav a { text-decoration: none; color: #eaf4ff; font-weight: 500; }
.site-head nav a:hover { color: #fff; }
.who { color: #b8d0e6; font-size: 14px; }
@media (max-width: 560px) { .brand-tag { display: none; } .brand-logo { height: 50px; } .site-head { padding: 12px 18px; } }

/* ---------- Layout ---------- */
.wrap { max-width: 900px; margin: 0 auto; padding: 34px 20px 70px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  border-radius: 22px; padding: 60px 32px 56px;
  text-align: center; color: #fff;
  background: radial-gradient(130% 150% at 50% -20%, #6791ba 0%, #2a4a6b 55%, #1d3a57 100%);
  box-shadow: var(--shadow-lg);
  margin-bottom: 30px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .10; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='54' height='54' viewBox='0 0 54 54'%3E%3Cpath d='M14 30 L27 19 L40 30 M18 28 V38 H36 V28' fill='none' stroke='%23ffffff' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 54px 54px;
}
.hero::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 120px; height: 4px; border-radius: 4px 4px 0 0; background: linear-gradient(90deg, var(--green-hi), var(--accent));
}
.hero > * { position: relative; }
.hero h1 { font-size: clamp(34px, 6vw, 52px); margin: 0 0 12px; color: #fff; font-weight: 600; }
.hero p { color: #cfe0f0; max-width: 44ch; margin: 0 auto; font-size: 18px; }

/* ---------- Panels ---------- */
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 28px;
  margin: 22px 0;
  box-shadow: var(--shadow-sm);
}
.panel.narrow { max-width: 440px; margin-inline: auto; }
.panel h2 {
  margin: 0 0 18px; font-size: 25px;
  display: flex; align-items: center; gap: 12px;
}
.panel h2::before {
  content: ""; width: 6px; height: 24px; border-radius: 3px;
  background: linear-gradient(180deg, var(--green-hi), var(--accent));
}
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.panel-head h2 { margin: 0; }
.more { font-family: var(--sans); font-size: 14px; font-weight: 600; text-decoration: none; }
.muted { color: var(--muted); }

/* ---------- Link grid ---------- */
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.link-card {
  position: relative; overflow: hidden;
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 18px; border-radius: 14px;
  background: #fff; border: 1px solid var(--line);
  text-decoration: none; color: var(--ink);
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.link-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--green-hi), var(--accent));
  transform: scaleY(0); transform-origin: top; transition: transform .16s ease;
}
.link-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #c9d8e6; }
.link-card:hover::before { transform: scaleY(1); }
.link-badge {
  flex: none; width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 18px;
  font-family: var(--sans);
  background: linear-gradient(150deg, var(--steel-lo), var(--steel-hi));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), var(--shadow-sm);
}
.link-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.link-title { font-weight: 700; font-family: var(--sans); }
.link-desc { font-size: 13px; color: var(--muted); font-family: var(--sans); }

/* ---------- Posts ---------- */
.post-teaser { padding: 16px 0; border-bottom: 1px solid var(--line); }
.post-teaser:last-child { border-bottom: 0; padding-bottom: 0; }
.post-teaser h3 { margin: 0 0 4px; font-size: 21px; }
.post-teaser h3 a { text-decoration: none; }
.byline { font-family: var(--sans); font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.excerpt { color: #46586a; }
.post-full h1 { margin-top: 0; font-size: clamp(28px, 5vw, 40px); }
.post-body { font-size: 18px; line-height: 1.75; }
.post-body p { margin: 0 0 1em; }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 15px; font-family: var(--sans); }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); font-weight: 500; }
.form input, .form textarea {
  font: inherit; font-size: 16px; color: var(--ink);
  padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fbfdff;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.form input:focus, .form textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(60,138,28,.15); background: #fff;
}
.form button, .inline-form button {
  align-self: flex-start; font-family: var(--sans); font-weight: 600; font-size: 15px;
  padding: 11px 24px; border: 0; border-radius: 10px; cursor: pointer; color: #fff;
  background: linear-gradient(180deg, #48a326, var(--accent));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), var(--shadow-sm);
  transition: filter .12s ease, transform .08s ease;
}
.form button:hover, .inline-form button:hover { filter: brightness(1.06); }
.form button:active { transform: translateY(1px); }
.error { color: #b00020; font-family: var(--sans); }
.ok { color: var(--accent); font-family: var(--sans); font-weight: 600; }
.check { flex-direction: row !important; align-items: center; gap: 8px !important; }
.check input { width: auto; }
h3 { font-size: 19px; }

/* ---------- Tables ---------- */
.tbl { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 14px; }
.tbl th, .tbl td { text-align: left; padding: 11px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl th { color: var(--muted); font-weight: 600; }
.inline-form { display: flex; gap: 6px; }
.inline-form input { font: inherit; font-size: 14px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; }
.inline-form button { padding: 7px 14px; border-radius: 8px; align-self: auto; }

/* ---------- Footer ---------- */
.site-foot {
  text-align: center; padding: 28px; margin-top: 10px;
  color: #cfe0f0; font-family: var(--sans); font-size: 13px;
  background: linear-gradient(180deg, var(--steel-hi), #17324c);
  border-top: 4px solid var(--accent);
}
.site-foot .foot-mark { font-weight: 700; color: #fff; }
