/* ============================================================
   FREE AND CLEAR — daylight design system
   The counterpart to Midnight Ledger: cream paper, slate ink,
   brass warmth. Type: Cormorant Garamond (display) + Inter (body).
   ============================================================ */
:root {
  --paper: #F7F3EA;
  --paper-deep: #EFE9DA;
  --ink: #3E4A5C;
  --ink-deep: #2C3644;
  --brass: #B7793F;
  --brass-deep: #8A5A26;
  --muted: #6B6B5E;
  --hairline: #C9BFA9;
  --glow: #F1E4CE;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.serif { font-family: 'Cormorant Garamond', Georgia, serif; }

/* ---------- structure ---------- */
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 24px; }
section { padding: 84px 0; }
.rule { height: 1px; background: var(--hairline); border: none; }

.eyebrow {
  font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--brass-deep); font-weight: 600; margin-bottom: 18px;
}

h1, h2, h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; line-height: 1.15; }
h1 { font-size: clamp(42px, 6vw, 68px); }
h2 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 20px; }
h3 { font-size: 24px; }

.lede { font-size: 19px; color: var(--muted); max-width: 62ch; }
.quote {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(24px, 3vw, 32px); font-style: italic; color: var(--ink);
  border-left: 3px solid var(--brass); padding-left: 26px; max-width: 30ch;
}

/* ---------- nav ---------- */
header {
  border-bottom: 1px solid var(--hairline);
  background: var(--paper);
}
nav {
  max-width: 1060px; margin: 0 auto; padding: 20px 24px;
  display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.wordmark {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 24px; font-weight: 700; color: var(--ink); text-decoration: none;
  letter-spacing: 0.02em;
}
.wordmark span { color: var(--brass); }
.navlinks { display: flex; gap: 26px; }
.navlinks a {
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; font-weight: 600;
  padding-bottom: 3px; border-bottom: 2px solid transparent;
}
.navlinks a:hover, .navlinks a.here { color: var(--ink); border-bottom-color: var(--brass); }
.navlinks a:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; }

/* ---------- hero ---------- */
.hero-wide { max-width: 1360px; margin: 0 auto; padding: 0 24px; }
.hero-split {
  display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center;
}
.hero-photo img {
  width: 100%; display: block; border-radius: 10px;
  min-height: 420px; object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 14%);
  mask-image: linear-gradient(90deg, transparent 0%, black 14%);
}
@media (max-width: 820px) {
  .hero-split { grid-template-columns: 1fr; gap: 30px; }
  .hero-photo img { -webkit-mask-image: none; mask-image: none; min-height: 0; }
}

.about-photo {
  display: flex; align-items: center; justify-content: center; height: 100%;
}

/* ---------- the doors (signature) ---------- */
.doors {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 22px; margin-top: 52px;
}
.door {
  display: block; text-decoration: none; color: var(--ink);
  text-align: center; transition: transform .25s ease;
}
.door:hover { transform: translateY(-6px); }
.door:focus-visible { outline: 2px solid var(--brass); outline-offset: 6px; }
.door-frame {
  height: 190px; border: 2px solid var(--ink); border-radius: 90px 90px 6px 6px;
  background: linear-gradient(180deg, var(--glow) 0%, var(--paper-deep) 100%);
  position: relative; margin: 0 auto; max-width: 130px;
  box-shadow: inset 0 -18px 30px -18px rgba(183,121,63,.45);
  transition: box-shadow .25s ease;
  overflow: hidden;
}
.door-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
}
.book .cover {
  width: 100%; max-width: 220px; align-self: center;
  border-radius: 4px; box-shadow: 0 14px 34px -14px rgba(44,54,68,.5);
  margin-bottom: 8px;
}
.headshot {
  width: 100%; max-width: 420px; border-radius: 8px; display: block;
  box-shadow: 0 22px 50px -22px rgba(44,54,68,.5);
}
.door:hover .door-frame { box-shadow: inset 0 -34px 44px -18px rgba(183,121,63,.7); }
.door-frame::after {
  content: ""; position: absolute; right: 18px; top: 52%;
  width: 7px; height: 7px; border-radius: 50%; background: var(--brass);
}
.door-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 21px; font-weight: 600; margin-top: 14px;
}
.door-sub { font-size: 12.5px; color: var(--muted); letter-spacing: .04em; }

/* ---------- book cards ---------- */
.shelf { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 34px; margin-top: 44px; }
.book {
  border: 1px solid var(--hairline); background: #FBF8F1;
  padding: 34px 30px; border-radius: 6px;
  display: flex; flex-direction: column; gap: 14px;
}
.book .spine {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 30px; font-weight: 700; line-height: 1.1;
  border-bottom: 2px solid var(--brass); padding-bottom: 14px;
}
.book .kind { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--brass-deep); font-weight: 600; }
.book p { font-size: 15.5px; color: var(--muted); flex: 1; }
.badge {
  align-self: flex-start; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--paper); background: var(--brass); padding: 5px 12px; border-radius: 3px; font-weight: 700;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 14px;
  letter-spacing: .06em; padding: 13px 26px; border-radius: 4px;
  transition: all .18s ease;
}
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.btn-solid { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); }
.btn-solid:hover { background: var(--ink-deep); }
.btn-brass { background: var(--brass); color: #fff; border: 1px solid var(--brass); }
.btn-brass:hover { background: var(--brass-deep); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-ghost:hover { border-color: var(--brass); color: var(--brass-deep); }

/* ---------- feature strips ---------- */
.strip { background: var(--paper-deep); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 36px; } }

.lawcard {
  background: var(--ink); color: var(--paper); border-radius: 8px;
  padding: 46px 42px; box-shadow: 0 24px 60px -30px rgba(44,54,68,.55);
}
.lawcard .eyebrow { color: var(--brass); }
.lawcard .serif { font-size: 27px; line-height: 1.35; }
.lawcard em { color: var(--glow); }

/* ---------- forms ---------- */
.signup-form { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.signup-form input[type="email"] {
  font-family: 'Inter', sans-serif; font-size: 15px;
  padding: 13px 16px; min-width: 280px;
  border: 1px solid var(--hairline); border-radius: 4px;
  background: #FFFDF8; color: var(--ink);
}
.signup-form input[type="email"]:focus { outline: none; border-color: var(--brass); }
.signup-form button {
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 14px; letter-spacing: .06em;
  padding: 13px 26px; border-radius: 4px; cursor: pointer;
  background: var(--brass); color: #fff; border: 1px solid var(--brass);
  transition: background .18s ease;
}
.signup-form button:hover { background: var(--brass-deep); }
.signup-form button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- footer ---------- */
footer { background: var(--ink-deep); color: #B9C0CC; padding: 56px 0 44px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 26px; align-items: baseline; }
footer .wordmark { color: var(--paper); font-size: 21px; }
footer a { color: #B9C0CC; text-decoration: none; font-size: 14px; }
footer a:hover { color: var(--paper); }
footer .other-house { font-size: 13px; color: #8A93A3; font-style: italic; }
footer .other-house a { color: var(--brass); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
