/* Rolodash landing page. Uses the Desk Drawer tokens (tokens.css); classes are prefixed ld-. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 26px; overflow-x: clip; }
h1, h2, h3, p { margin: 0; }
a { color: var(--tomato); }
a:hover { color: var(--tomato-deep); }
a:focus-visible, .ld-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.visually-hidden:focus { position: fixed; top: 8px; left: 8px; z-index: 50; width: auto; height: auto; margin: 0; padding: 8px 12px; clip: auto; background: var(--card); border: var(--border-card) solid var(--ink); border-radius: var(--radius-md); }

.ld-wrap { max-width: 1160px; margin: 0 auto; padding-left: clamp(20px, 5vw, 48px); padding-right: clamp(20px, 5vw, 48px); }
.ld-serif { font-family: var(--font-serif); font-weight: 400; }
.ld-muted { color: var(--ink-muted); }
.ld-label { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.ld-pencil { font-family: "Caveat", "Bradley Hand", cursive; color: var(--ink-muted); }
.ld-h2 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.1; }
.ld-h3 { font-family: var(--font-serif); font-weight: 400; font-size: 24px; line-height: 30px; }

/* Buttons */
.ld-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border: var(--border-control) solid var(--ink); border-radius: var(--radius-md); background: var(--card); color: var(--ink); font-size: 17px; font-weight: 600; text-decoration: none; }
.ld-btn:hover { background: var(--paper-deep); color: var(--ink); }
.ld-btn--primary { background: var(--tomato); border-color: var(--tomato); color: var(--on-tomato); }
.ld-btn--primary:hover { background: var(--tomato-deep); border-color: var(--tomato-deep); color: var(--on-tomato); }
.ld-btn--block { display: flex; }

/* Hero: the painting, with the top bar and one sheet of paper laid over it */
.ld-hero { background: #c9a15c url("img/cafe-terrace.jpg") right bottom / cover no-repeat; border-bottom: var(--border-card) solid var(--ink); }
.ld-hero__in { max-width: 1160px; margin: 0 auto; min-height: clamp(640px, 68vw, 1200px); padding: 24px clamp(16px, 4vw, 40px) clamp(40px, 6vw, 88px); display: flex; flex-direction: column; gap: clamp(32px, 5vw, 64px); }

.ld-top { display: flex; align-items: center; justify-content: space-between; gap: 0 24px; padding: 4px 16px; background: var(--card); border: var(--border-card) solid var(--ink); border-radius: var(--radius-md); }
.ld-brand { padding: 8px 0; font-family: var(--font-serif); font-size: 22px; line-height: 28px; color: var(--ink); text-decoration: none; }
.ld-brand:hover { color: var(--ink); }
.ld-nav { display: flex; align-items: center; gap: 0 28px; font-size: 15px; font-weight: 500; white-space: nowrap; }
.ld-nav a { padding: 11px 0; color: var(--ink); text-decoration: none; }
.ld-nav a:hover { color: var(--tomato-deep); }

.ld-sheet { background: var(--card); border: var(--border-card) solid var(--ink); border-radius: var(--radius-md); }
.ld-hero__sheet { align-self: flex-start; max-width: 600px; padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; gap: 28px; box-shadow: 0 24px 60px rgba(31, 42, 68, 0.35); }
.ld-h1 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(38px, 5vw, 62px); line-height: 1.08; letter-spacing: -0.01em; }
.ld-underline { position: relative; display: inline-block; }
.ld-underline svg { position: absolute; left: 0; bottom: -8px; width: 100%; height: 12px; }
.ld-lead { max-width: 520px; font-size: 19px; line-height: 30px; }
.ld-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.ld-cta__note { font-size: 15px; line-height: 22px; color: var(--ink-muted); }
.ld-jot { display: flex; flex-direction: column; gap: 2px; max-width: 300px; font-size: 27px; line-height: 36px; }
.ld-jot span { border-bottom: 1px solid var(--rule); }

/* Sections on paper */
.ld-section { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); }
.ld-section--first { padding-top: clamp(56px, 8vw, 104px); }
.ld-section--last { padding-bottom: clamp(56px, 8vw, 104px); }
.ld-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 48px; padding-bottom: 40px; }
.ld-head .ld-h2 { flex: 1 1 420px; }
.ld-head p { flex: 1 1 320px; max-width: 440px; color: var(--ink-muted); }

/* What it does for you */
.ld-rows { border-top: var(--border-card) solid var(--ink); border-bottom: var(--border-card) solid var(--ink); }
.ld-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 56px; padding: 28px 0; }
.ld-row + .ld-row { border-top: 1px solid var(--line); }
.ld-row__main { flex: 1 1 480px; min-width: 0; display: flex; gap: 28px; }
.ld-row__num { flex: 0 0 32px; font-family: var(--font-serif); font-size: 24px; line-height: 30px; }
.ld-row__text { display: flex; flex-direction: column; gap: 6px; }
.ld-row__text p { max-width: 480px; }
.ld-row__note { flex: 0 1 280px; min-width: 0; font-size: 25px; line-height: 32px; }

/* A notebook, not a scoreboard */
.ld-split { display: flex; flex-wrap: wrap; gap: 40px 72px; }
.ld-split__lead { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.ld-split__lead > p { max-width: 420px; }
.ld-compare { display: flex; flex-direction: column; font-size: 26px; line-height: 36px; }
.ld-compare s { text-decoration-thickness: 1.5px; }
.ld-compare span { color: var(--ink); }
.ld-points { flex: 1.4 1 480px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; align-content: start; }
.ld-point { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: var(--border-card) solid var(--ink); }
.ld-point h3 { font-family: var(--font-serif); font-weight: 400; font-size: 22px; line-height: 28px; }

/* See how you're doing */
.ld-measures { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.ld-measure { display: flex; flex-direction: column; gap: 8px; padding: 20px; }
.ld-measure__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ld-measure__value { font-family: var(--font-serif); font-size: 32px; line-height: 36px; }
.ld-measure svg { display: block; width: 100%; height: 44px; }
.ld-measure__note { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.ld-measures__foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 40px; margin-top: 36px; }
.ld-measures__foot p { flex: 1 1 420px; font-size: 26px; line-height: 34px; }

/* Emails and price */
.ld-band { background: var(--paper-deep); border-top: var(--border-card) solid var(--ink); }
.ld-band__in { max-width: 1160px; margin: 0 auto; padding: clamp(56px, 8vw, 104px) clamp(16px, 4vw, 40px); display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px; }
.ld-panel { flex: 1 1 380px; min-width: 0; padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; gap: 20px; }
.ld-panel h2 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.15; }
.ld-panel__item { display: flex; flex-direction: column; gap: 4px; padding-top: 16px; border-top: 1px solid var(--line); }
.ld-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.ld-price__amount { font-family: var(--font-serif); font-size: 72px; line-height: 72px; }
.ld-price__per { font-size: 17px; line-height: 24px; color: var(--ink-muted); }
.ld-panel__small { font-size: 14px; line-height: 20px; color: var(--ink-muted); text-align: center; }

/* Footer */
.ld-foot { background: var(--ink); color: var(--paper); }
.ld-foot__in { max-width: 1160px; margin: 0 auto; padding: clamp(36px, 5vw, 56px) clamp(20px, 5vw, 48px) 28px; display: flex; flex-direction: column; gap: 32px; }
.ld-foot__top { display: flex; flex-wrap: wrap; gap: 28px 64px; justify-content: space-between; }
.ld-foot__promise { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.ld-foot__promise h2 { font-family: var(--font-serif); font-weight: 400; font-size: 28px; line-height: 34px; }
.ld-foot__promise p { max-width: 520px; color: var(--line); }
.ld-foot__contact { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.ld-foot__contact span { font-family: var(--font-serif); font-size: 22px; line-height: 28px; }
.ld-foot a { padding: 8px 0; color: var(--paper); }
.ld-foot a:hover { color: var(--card); }
.ld-foot a:focus-visible { outline-color: var(--paper); }
.ld-foot__bottom { display: flex; flex-wrap: wrap; gap: 4px 28px; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--ink-muted); font-size: 14px; line-height: 20px; color: var(--line); }
.ld-foot__bottom > span { padding: 8px 0; }
.ld-foot__links { display: flex; flex-wrap: wrap; gap: 0 24px; }
.ld-foot__links a { color: var(--line); }

/* Phones: a slim top bar and the smaller painting */
@media (max-width: 700px) {
  .ld-nav__extra { display: none; }
  /* The sheet fills a phone screen, so the terrace is shown again in the space left below it. */
  .ld-hero { background: url("img/cafe-terrace-900.jpg") 88% bottom / 200vw auto no-repeat, #c9a15c url("img/cafe-terrace-900.jpg") right top / cover no-repeat; }
  .ld-hero__in { min-height: 0; padding-bottom: 60vw; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
