/* mikekerklin.com: one page, dark sunrise palette pulled from the logo and outro art. */

:root {
  --bg: #141418;
  --bg-raised: #1d1d23;
  --line: #2c2c35;
  --text: #f3ece2;
  --muted: #b9b0a4;
  --gold: #f2b134;
  --gold-deep: #e08a1e;
  --sky: #3d6fa8;
  --radius: 14px;
  --gutter: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 "Montserrat", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2 {
  font-family: "Permanent Marker", "Montserrat", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.1;
  margin: 0;
}

h3 { font-size: 1.15rem; line-height: 1.3; margin: 0 0 .25rem; }

p { margin: 0 0 .9rem; }

a { color: var(--gold); }

.button {
  display: inline-block;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
  color: #1a1206;
  font-weight: 700;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(242, 177, 52, .3); }
.button:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(14, 14, 18, .94) 0%, rgba(14, 14, 18, .78) 45%, rgba(14, 14, 18, .15) 100%),
    url("assets/hero.jpg") center right / cover no-repeat;
}

.hero-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem var(--gutter);
}

.logo { width: 200px; height: 200px; display: block; margin: 0 0 .5rem -12px; }

.hero h1 { font-size: clamp(2.6rem, 7vw, 4.5rem); }

.project {
  margin: .4rem 0 1rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-size: .85rem;
  color: var(--gold);
}

.mission { font-size: 1.25rem; max-width: 30ch; }

.start {
  margin-top: 2rem;
  max-width: 460px;
  padding: 1.4rem 1.5rem;
  border: 1px solid rgba(242, 177, 52, .35);
  border-radius: var(--radius);
  background: rgba(20, 20, 24, .72);
  backdrop-filter: blur(6px);
}
.start h2 { font-size: 1.6rem; margin-bottom: .4rem; }

/* ---------- Sections ---------- */

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem var(--gutter);
  border-top: 1px solid var(--line);
}
.section > h2 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 1.5rem; color: var(--gold); }

.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.cards.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card, .wide {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
}
.card .button, .wide .button { margin-top: auto; align-self: flex-start; }
.wide p { max-width: 60ch; }

.sub { color: var(--gold); font-weight: 600; font-size: .9rem; margin-bottom: .7rem; }
.meta { color: var(--muted); font-size: .9rem; }

/* Book covers share one 2:3 box so the cards line up; covers with other
   proportions (the letter-size workbook) sit on its bottom edge, uncropped. */
.cover {
  aspect-ratio: 2 / 3;
  width: 62%;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.cover img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
}

/* ---------- About ---------- */

.about { display: grid; grid-template-columns: 180px 1fr; gap: 2rem; align-items: center; }
.about h2 { font-size: 2.2rem; margin-bottom: 1rem; color: var(--gold); }
.about p { max-width: 60ch; }
.photo { width: 180px; height: 180px; border-radius: 50%; }
.photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--line); padding: 2.5rem var(--gutter) 3rem; text-align: center; color: var(--muted); }
.footer nav { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1rem; }
.footer nav a { color: var(--text); text-decoration: none; font-weight: 600; }
.footer nav a:hover { color: var(--gold); }
.signoff { font-family: "Permanent Marker", "Montserrat", sans-serif; color: var(--gold); font-size: 1.3rem; margin-bottom: .3rem; }
.copy { font-size: .85rem; }

/* ---------- Phones ---------- */

@media (max-width: 640px) {
  .hero {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(14, 14, 18, .55) 0%, rgba(14, 14, 18, .88) 55%, rgba(14, 14, 18, .97) 100%),
      url("assets/hero.jpg") 75% top / cover no-repeat;
  }
  .logo { width: 150px; height: 150px; margin-left: -8px; }
  .mission { font-size: 1.1rem; }
  .section { padding: 3rem var(--gutter); }
  .about { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .about p { margin-left: auto; margin-right: auto; }
}

/* Visitors who ask for less motion get a still logo */
@media (prefers-reduced-motion: reduce) {
  .logo .steam { filter: none; }
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
