/* Mike Smith — hub v3. "Modern tech" meets "beachy farmhouse":
   warm paper, sand and sea-glass, soft depth, editorial serif display + clean sans. */
:root {
  --paper: #faf6ee;
  --paper-deep: #f3ecdc;
  --card: #fffdf7;
  --ink: #26332b;
  --ink-soft: #5d6f63;
  --sand: #e7dcc4;
  --sand-deep: #c9a86a;
  --sea: #2f6b4f;
  --sea-deep: #1e4634;
  --sea-soft: #dcebe0;
  --line: #e3dac6;
  --radius: 20px;
  --shadow: 0 2px 6px rgba(38, 51, 43, 0.05), 0 18px 38px -18px rgba(38, 51, 43, 0.28);
  --shadow-lift: 0 4px 10px rgba(38, 51, 43, 0.07), 0 26px 48px -18px rgba(38, 51, 43, 0.35);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(1100px 480px at 85% -120px, rgba(201, 168, 106, 0.20), rgba(201, 168, 106, 0) 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(47, 107, 79, 0.10), rgba(47, 107, 79, 0) 55%),
    var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--sea); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 920px; margin: 0 auto; padding: 0 22px; }
.serif { font-family: Georgia, "Times New Roman", serif; }

/* Top bar */
.topbar { padding: 20px 0 4px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .sun { width: 34px; height: 34px; flex: 0 0 auto; }
.brand .name { font-family: Georgia, "Times New Roman", serif; font-size: 21px; font-weight: 700; letter-spacing: 0.01em; }
.brand .name em { font-style: normal; color: var(--sea); }
.topbar nav { display: flex; gap: 6px; flex-wrap: wrap; }
.topbar nav a {
  color: var(--ink-soft); font-weight: 600; font-size: 13.5px;
  padding: 7px 13px; border-radius: 99px; background: rgba(255, 253, 247, 0.65);
  border: 1px solid var(--line);
}
.topbar nav a:hover { color: var(--sea-deep); border-color: var(--sand-deep); text-decoration: none; }

/* Hero */
.hero { padding: 34px 0 10px; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 34px; align-items: center; }
@media (max-width: 720px) { .hero { grid-template-columns: 1fr; } }
.hero .kicker { font-size: 11.5px; font-weight: 700; letter-spacing: 0.22em; color: var(--sand-deep); }
.hero h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(34px, 5.4vw, 50px); line-height: 1.12; font-weight: 700; letter-spacing: -0.01em; margin-top: 12px; }
.hero h1 .accent { color: var(--sea); font-style: italic; }
.hero .welcome { margin-top: 16px; font-size: 16.5px; line-height: 1.65; color: var(--ink-soft); max-width: 480px; }
.hero-photo { position: relative; }
.hero-photo::before {
  content: ""; position: absolute; inset: 14px -14px -14px 14px;
  background: var(--sand); border-radius: 26px; z-index: 0;
}
.hero-photo img {
  position: relative; z-index: 1; width: 100%; height: auto; display: block;
  border-radius: 26px; border: 6px solid var(--card); box-shadow: var(--shadow);
}
.hero-photo figcaption { position: relative; z-index: 1; margin-top: 20px; font-size: 12.5px; color: var(--ink-soft); font-style: italic; }

/* Shiplap divider */
.shiplap { height: 12px; margin: 30px 0 4px; border-radius: 6px;
  background: repeating-linear-gradient(180deg, rgba(250,246,238,0.9) 0 2px, transparent 2px 6px), var(--sand);
  opacity: 0.75; }

/* Sections */
.seclabel { display: flex; align-items: baseline; gap: 14px; margin: 40px 0 16px; }
.seclabel .word { font-size: 12px; font-weight: 700; letter-spacing: 0.22em; color: var(--sea); }
.seclabel .rule { flex: 1; height: 1px; background: var(--line); }
.seclabel .note { font-size: 13px; color: var(--ink-soft); font-style: italic; font-family: Georgia, serif; }

/* Project cards */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.card .banner { height: 108px; position: relative; display: flex; align-items: flex-end; padding: 0 18px; }
.card .banner img.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card .banner .scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30, 40, 33, 0) 30%, rgba(30, 40, 33, 0.35)); }
.card .banner.tint-green { background: linear-gradient(135deg, #79b58a, #43785a); }
.card .banner.tint-deep { background: linear-gradient(135deg, #5c7a37, #31461a); }
.card .banner.tint-sand { background: linear-gradient(135deg, #e2d3ae, #c9a86a); }
.card .banner.tint-sea { background: linear-gradient(135deg, #7fb0a0, #2f6b4f); }
.app-icon {
  position: relative; z-index: 1; width: 62px; height: 62px; border-radius: 15px;
  object-fit: cover; border: 3px solid var(--card); box-shadow: 0 6px 16px rgba(30, 40, 33, 0.3);
  transform: translateY(20px); background: var(--card);
}
.icon-tile {
  position: relative; z-index: 1; width: 62px; height: 62px; border-radius: 15px;
  border: 3px solid var(--card); box-shadow: 0 6px 16px rgba(30, 40, 33, 0.3);
  transform: translateY(20px); background: var(--card); color: var(--sea);
  display: flex; align-items: center; justify-content: center;
}
.icon-tile svg { width: 32px; height: 32px; }
.card .body { padding: 34px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.tag { align-self: flex-start; font-size: 10px; font-weight: 700; letter-spacing: 0.13em; padding: 4px 10px; border-radius: 99px; background: var(--sea-soft); color: var(--sea-deep); }
.tag.sand { background: #f0e6cd; color: #7c6228; }
.tag.dim { background: var(--paper-deep); color: var(--ink-soft); }
.card h3 { font-family: Georgia, "Times New Roman", serif; font-size: 21px; font-weight: 700; margin: 11px 0 7px; }
.card p { font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); }
.card .stack { margin-top: 13px; font-size: 11.5px; letter-spacing: 0.04em; color: var(--ink-soft); border-top: 1px dashed var(--line); padding-top: 10px; }
.card .visit { margin-top: auto; padding-top: 14px; font-size: 14.5px; font-weight: 700; }
.card .visit a { color: var(--sea); }
.card.wide { flex-direction: row; }
.card.wide .photo-side { flex: 0 0 34%; min-height: 190px; position: relative; }
.card.wide .photo-side img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card.wide .body { padding: 22px 22px 20px; }
@media (max-width: 620px) { .card.wide { flex-direction: column; } .card.wide .photo-side { min-height: 150px; } }

/* Background strip */
.bg-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
@media (max-width: 620px) { .bg-grid { grid-template-columns: 1fr; } }
.bg-grid .col { background: linear-gradient(180deg, var(--card), var(--paper-deep)); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.bg-grid .col h4 { font-family: Georgia, "Times New Roman", serif; font-size: 16.5px; font-weight: 700; margin-bottom: 6px; }
.bg-grid .col p { font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); }
.more-link { margin-top: 18px; font-size: 15px; font-weight: 700; }

/* Footer */
footer { margin-top: 54px; background: var(--sea-deep); color: #dcebe0; }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 26px; font-size: 13px; }
footer .brand-line { font-family: Georgia, serif; font-size: 16px; color: #fff; }
footer nav { display: flex; gap: 16px; }
footer nav a { color: #dcebe0; font-weight: 600; }
footer nav a:hover { color: #fff; }
footer a { color: #dcebe0; }

/* About page (shared chrome) */
.place { color: var(--ink-soft); font-size: 12px; letter-spacing: 0.06em; }
.wordmark { font-family: Georgia, serif; font-weight: 700; letter-spacing: 0.04em; font-size: 17px; color: var(--ink); }
a.wordmark:hover { text-decoration: none; }
.page-head { padding: 36px 0 4px; }
.page-head .kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.2em; color: var(--sand-deep); }
.page-head h1 { font-family: Georgia, serif; font-size: clamp(30px, 5vw, 40px); font-weight: 700; margin-top: 6px; }
.page-head .role { margin-top: 6px; font-size: 15px; color: var(--ink-soft); }
.page-head .contact { margin-top: 8px; font-size: 14px; color: var(--ink-soft); }
.resume-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; }
.resume-card h2 { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; color: var(--sea); margin: 26px 0 12px; }
.resume-card h2:first-child { margin-top: 0; }
.resume-card p { font-size: 14.5px; line-height: 1.65; color: var(--ink-soft); }
.resume-card p strong { color: var(--ink); }
.summary-lede { font-size: 15px; }
.job { margin-bottom: 18px; }
.job-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.job h3 { font-size: 15.5px; font-weight: 600; }
.job h3 .org { font-weight: 700; }
.job .dates { font-size: 12.5px; color: var(--ink-soft); white-space: nowrap; }
.job p { margin-top: 4px; }
.back-home { display: inline-block; margin-top: 18px; font-size: 14.5px; font-weight: 700; }
