/* kyliekrets.com — shared styles for /, /work-with-me and /links.
   Headlines are Advercase outlines rendered by build.py (see .adv). Body is self-hosted DM Sans. */

@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans.woff") format("woff");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --cream: #FAF6EE;
  --cream-deep: #F0EBDB;
  --navy: #1E2D4E;
  --chocolate: #4A2E1F;
  --creamsicle: #FFB087;
  --blush: #F6D9D0;
  --brass: #B8956A;
  --rule: rgba(184, 149, 106, 0.45);
  --ink-soft: rgba(30, 45, 78, 0.74);
  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: "DM Sans", -apple-system, "Helvetica Neue", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  background: var(--cream);
  color: var(--navy);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--creamsicle); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- Advercase outlines ---------- */

.adv { display: block; line-height: 1.04; }
.adv svg { display: inline-block; fill: currentColor; vertical-align: -0.27em; overflow: visible; }

.h1 { font-size: clamp(42px, 7.1vw, 88px); text-wrap: balance; }
.h2 { font-size: clamp(31px, 4.7vw, 58px); }
.h3 { font-size: 21px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }

.lead { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.55; color: var(--ink-soft); max-width: 34em; }
p { max-width: 38em; }

/* ---------- pieces ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 1.5px solid var(--navy);
  background: var(--navy); color: var(--cream);
  font: inherit; font-weight: 600; font-size: 16px; text-decoration: none;
  transition: background 0.18s, color 0.18s;
}
.btn:hover { background: var(--chocolate); border-color: var(--chocolate); }
.btn-quiet { background: transparent; color: var(--navy); }
.btn-quiet:hover { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.pearl-rule { display: flex; align-items: center; gap: 14px; width: 220px; }
.pearl-rule span { flex: 1; height: 1px; background: var(--brass); opacity: 0.85; }

.pearl {
  display: inline-block; width: 13px; height: 13px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 30%, #FFFDF8 0, #F5EDDB 55%, #D9CBA8 100%);
  box-shadow: 0 0 0 0.5px var(--brass);
}

/* ---------- top bar ---------- */

.top { display: flex; align-items: center; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; }
.top .home { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 25px; }
.top .home img { width: 26px; height: 26px; }
.top nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 28px); font-size: 15px; font-weight: 600; }
.top nav a { text-decoration: none; padding: 12px 0; }
.top nav a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--brass); }

/* ---------- home: opening ---------- */

.opening { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.75fr); gap: clamp(28px, 4vw, 56px); align-items: center; padding-top: clamp(20px, 5vw, 64px); padding-bottom: clamp(64px, 9vw, 120px); }
.opening .h1 { font-size: clamp(42px, 5.9vw, 76px); }
.opening .lead { margin: 28px 0 32px; }

.portrait { position: relative; justify-self: end; width: 100%; max-width: 400px; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px 20px 20px; filter: saturate(0.92) sepia(0.12); }
.portrait::before {
  content: ""; position: absolute; inset: -12px; border: 1px solid var(--brass);
  border-radius: 999px 999px 28px 28px; pointer-events: none;
}
.portrait .pearl { position: absolute; top: -19px; left: 50%; margin-left: -7px; }

@media (prefers-reduced-motion: no-preference) {
  .opening .h1 { animation: settle 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .portrait { animation: settle 0.7s 0.12s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  @keyframes settle { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}

/* ---------- home: sections ---------- */

.section { padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(64px, 9vw, 120px); }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.section-head .lead { margin-top: 18px; }

.kit { background: var(--cream-deep); }
.kit .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.kit .lead { margin: 20px 0 30px; }
.phones { display: flex; gap: clamp(12px, 2.4vw, 28px); justify-content: center; padding-bottom: 44px; }
.phones img {
  width: min(46%, 236px); height: auto; border-radius: clamp(20px, 3vw, 32px);
  border: 1px solid var(--rule); box-shadow: 0 28px 48px -28px rgba(74, 46, 31, 0.45);
}
.phones img + img { transform: translateY(44px); }

.handoffs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.handoffs li { list-style: none; padding: 6px clamp(18px, 2.6vw, 34px) 6px; border-left: 1px solid var(--rule); }
.handoffs li:first-child { border-left: 0; padding-left: 0; }
.handoffs .keep { white-space: nowrap; }
.handoffs .pearl { margin-left: 10px; vertical-align: 1px; }
.handoffs p { margin-top: 10px; color: var(--ink-soft); }

/* ---------- home: private by design (the one dark room) ---------- */

.private { position: relative; background: var(--navy); color: var(--cream); margin-top: 22px; }
.private::before {
  content: ""; position: absolute; left: 0; right: 0; top: -21px; height: 22px;
  background: radial-gradient(circle at 22px 22px, var(--navy) 21.5px, transparent 22px) repeat-x;
  background-size: 44px 22px;
}
.private .lead { color: rgba(250, 246, 238, 0.82); margin-top: 26px; max-width: 36em; }
.private .h2 { max-width: 15em; }
.stance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 4vw, 52px); margin-top: clamp(40px, 6vw, 72px); padding-top: clamp(28px, 4vw, 44px); border-top: 1px solid rgba(184, 149, 106, 0.55); }
.stance li { list-style: none; }
.stance .h3 { color: var(--creamsicle); }
.stance p { margin-top: 10px; color: rgba(250, 246, 238, 0.8); }
.private .btn { margin-top: clamp(32px, 4vw, 48px); background: var(--cream); color: var(--navy); border-color: var(--cream); }
.private .btn:hover { background: var(--creamsicle); border-color: var(--creamsicle); }

/* ---------- home: content ---------- */

.reels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 5vw, 72px); border-top: 1px solid var(--rule); }
.reels li { list-style: none; border-bottom: 1px solid var(--rule); }
.reels a { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; min-height: 76px; padding: 22px 6px; text-decoration: none; transition: background 0.18s; }
.reels a:hover { background: var(--cream-deep); }
.reels .title { font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.reels .where { flex: none; font-size: 14px; color: var(--ink-soft); }

/* ---------- home: two doors ---------- */

.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 28px); }
.door { border-radius: 28px; padding: clamp(28px, 4.5vw, 52px); display: flex; flex-direction: column; align-items: flex-start; }
.door p { margin: 16px 0 28px; color: var(--ink-soft); }
.door .btn-row { margin-top: auto; }
.door-follow { background: var(--blush); }
.door-brands { border: 1px solid var(--brass); }

/* ---------- footer ---------- */

.foot { border-top: 1px solid var(--rule); padding-top: 30px; padding-bottom: 44px; display: flex; flex-wrap: wrap; gap: 14px 32px; justify-content: space-between; font-size: 14px; color: var(--ink-soft); }
.foot p { max-width: 34em; }
.foot nav { display: flex; gap: 22px; }
.foot a { text-underline-offset: 3px; }

/* ---------- work with me ---------- */

.pitch { padding-top: clamp(28px, 6vw, 80px); padding-bottom: clamp(48px, 7vw, 96px); }
.pitch .lead { margin: 26px 0 32px; }

.split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(20px, 5vw, 72px); padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); border-top: 1px solid var(--rule); }
.split > div > p + p { margin-top: 14px; }
.split p { color: var(--ink-soft); }

.standards li, .offers li { list-style: none; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.standards li:first-child, .offers li:first-child { padding-top: 0; }
.standards li:last-child, .offers li:last-child { border-bottom: 0; padding-bottom: 0; }
.standards p, .offers p { margin-top: 6px; }

.fits { display: flex; flex-wrap: wrap; gap: 10px; }
.fits li { list-style: none; padding: 10px 20px; border-radius: 999px; background: var(--cream-deep); font-weight: 600; font-size: 16px; }
.fits + p { margin-top: 18px; }

.ask { background: var(--blush); border-radius: 28px; padding: clamp(32px, 6vw, 72px); margin-top: clamp(16px, 3vw, 40px); margin-bottom: clamp(56px, 8vw, 96px); }
.ask p { margin: 18px 0 28px; color: var(--ink-soft); }

/* ---------- links ---------- */

.links-page { max-width: 460px; margin: 0 auto; padding: 52px 24px 40px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.links-page .crest { width: 92px; height: 92px; margin-bottom: 22px; }
.links-page .wordmark { font-size: clamp(48px, 15.5vw, 68px); margin-bottom: 16px; }
.handle-stamp { display: inline-block; border: 1.5px solid var(--navy); font-weight: 700; font-size: 12px; letter-spacing: 0.18em; padding: 6px 14px; margin-bottom: 24px; }
.links-page .pearl-rule { margin-bottom: 26px; }
.links-page .bio { font-size: 15.5px; color: var(--ink-soft); line-height: 1.6; max-width: 340px; margin-bottom: 36px; }

.link-list { width: 100%; border-top: 1px solid var(--rule); margin-bottom: 34px; }
.link-row { display: flex; align-items: center; gap: 18px; min-height: 96px; padding: 14px 6px; text-decoration: none; text-align: left; border-bottom: 1px solid var(--rule); transition: background 0.18s; }
.link-row:hover, .link-row:active { background: var(--cream-deep); }
.link-row .thumb { flex: none; width: 68px; height: 68px; object-fit: cover; border-radius: 16px; box-shadow: 0 0 0 1px var(--rule); }
.link-row .link-title { display: block; font-weight: 700; font-size: 17.5px; letter-spacing: -0.01em; line-height: 1.3; }
.link-row .link-detail { display: block; font-size: 13.5px; color: var(--ink-soft); margin-top: 3px; line-height: 1.4; }

.socials { display: flex; gap: 14px; margin-bottom: 36px; }
.socials a { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--brass); transition: background 0.18s, color 0.18s; }
.socials a:hover { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.socials svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.socials svg .dot { fill: currentColor; stroke: none; }

.links-foot { width: 100%; padding-top: 22px; border-top: 1px solid var(--rule); font-size: 12.5px; color: var(--ink-soft); }

/* ---------- small screens ---------- */

@media (max-width: 820px) {
  .opening { grid-template-columns: 1fr; }
  .portrait { justify-self: center; max-width: 300px; margin-top: 18px; }
  .kit .wrap { grid-template-columns: 1fr; }
  .kit .phones { order: 2; }
  .handoffs, .stance { grid-template-columns: 1fr; }
  .handoffs li { border-left: 0; border-top: 1px solid var(--rule); padding: 26px 0; }
  .handoffs li:first-child { border-top: 0; padding-top: 0; }
  .stance { gap: 28px; }
  .reels, .doors, .split { grid-template-columns: 1fr; }
  .top nav .hide-s { display: none; }
}
