/* Judikatura page. Shared tokens, chrome and components live in styles.css.
 * Identity: a reading room. Paper and ink, ruled lines, the query set in type,
 * cobalt only where meaning is being matched. */

.jd-hero{padding-top:92px;padding-bottom:104px}
.jd-hero h1{font-size:clamp(56px,7.3vw,108px);line-height:.98;letter-spacing:-.058em;font-weight:400;max-width:1120px}
.jd-hero h1 em{display:block;color:var(--blue-ink);padding-right:.06em}
.jd-hero-lead{max-width:640px;margin-top:30px;font-size:19px;line-height:1.7;font-weight:350;color:var(--muted)}

/* Three ways to start, set as the inputs themselves: ruled rows, the input in type. */
.jd-modes{max-width:1120px;margin:72px 0 0;padding:0;list-style:none;border-top:1px solid var(--ink)}
.jd-mode{display:grid;grid-template-columns:196px 44px 1fr;align-items:baseline;padding:28px 0 30px;border-bottom:1px solid var(--line)}
.jd-mode-label{font-size:15px;line-height:1.5;color:var(--muted)}
.jd-mode-glyph{align-self:start;width:22px;height:22px;margin-top:7px;fill:none;stroke:var(--blue-ink);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.jd-mode-text{max-width:860px;font-family:Georgia,'Times New Roman',serif;font-size:clamp(22px,2.15vw,31px);line-height:1.42;letter-spacing:-.018em;color:var(--ink);text-wrap:pretty}
.jd-mode-ref span{margin-left:16px;font:400 15px/1.5 Outfit,Arial,sans-serif;letter-spacing:0;color:var(--muted);white-space:nowrap}
.jd-hero-actions{display:flex;flex-wrap:wrap;align-items:center;gap:18px 34px;margin:44px 0 0}
.jd-hero-actions .text-link{font-size:14px}

/* Section heading: statement left, measured paragraph right. */
.jd-section-head{display:grid;grid-template-columns:1.15fr 1fr;gap:80px;align-items:end}
.jd-section-head h2 em{color:var(--blue-ink)}
.jd-section-head>p{max-width:450px;padding-bottom:6px;font-size:17px;line-height:1.75;font-weight:350;color:var(--muted)}

.jd-method{padding-top:40px;padding-bottom:110px}
.jd-method-body{display:grid;grid-template-columns:1fr 1.02fr;gap:72px;align-items:start;margin-top:64px}
.jd-steps{margin:0;padding:0;list-style:none}
.jd-steps li{display:grid;grid-template-columns:64px 1fr;column-gap:8px;padding:26px 0 30px;border-top:1px solid var(--line)}
.jd-steps li:last-child{border-bottom:1px solid var(--line)}
.jd-step-number{grid-row:span 2;font:italic 400 44px/1 Georgia,'Times New Roman',serif;color:var(--blue-ink);letter-spacing:-.04em}
.jd-steps h3{font-size:24px;line-height:1.25;letter-spacing:-.025em}
.jd-steps p{margin-top:10px;max-width:440px;font-size:15px;line-height:1.8;font-weight:350;color:var(--muted)}
.jd-caution{margin-top:44px;padding-left:18px;border-left:2px solid var(--blue);font-size:14px;line-height:1.7;color:var(--muted);max-width:620px}

/* The search, filmed in the product: typing, results with summaries, Kompozice. */
.jd-film{position:sticky;top:124px;margin:0}
.jd-film-frame,.jd-shot-frame{overflow:hidden;background:#fff;border:1px solid var(--line);user-select:none;-webkit-user-select:none}
.jd-film video{display:block;width:100%;height:auto;aspect-ratio:16/10}

/* Two vocabularies, side by side: the reading-room band. */
.jd-models{padding:108px 0 112px;background:var(--wash);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.jd-lexicon{margin-top:66px;border-bottom:1px solid var(--line)}
.jd-lexicon-row{display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:baseline;padding:28px 0;border-top:1px solid var(--line)}
.jd-lexicon-row>span:first-child{font-family:Georgia,'Times New Roman',serif;font-style:italic;font-size:clamp(21px,1.9vw,27px);line-height:1.4;letter-spacing:-.015em}
.jd-lexicon-row>span:last-child{position:relative;font-size:clamp(19px,1.6vw,23px);line-height:1.4;letter-spacing:-.02em;color:var(--blue-ink)}
.jd-lexicon-row>span:last-child::before{content:'';position:absolute;left:-44px;top:.7em;width:24px;height:1px;background:var(--blue)}
.jd-lexicon-head{padding:0 0 16px;border-top:0}
.jd-lexicon-head>span:first-child,.jd-lexicon-head>span:last-child{font:450 14px/1.4 Outfit,Arial,sans-serif;letter-spacing:0;color:var(--muted)}
.jd-lexicon-head>span:last-child::before{display:none}

.jd-catalogue{display:grid;grid-template-columns:1fr 1fr;gap:96px;align-items:center;padding-top:112px;padding-bottom:112px}
.jd-catalogue h2 em{color:var(--blue-ink)}
.jd-catalogue-copy>p{margin-top:28px;max-width:470px;font-size:17px;line-height:1.75;font-weight:350;color:var(--muted)}
.jd-catalogue-copy .text-link{margin-top:28px}

/* A day in the real catalogue: its summary and one annotated decision. */
.jd-shot{margin:0}
.jd-shot picture,.jd-shot img{display:block;width:100%;height:auto}
.jd-shot-dark{display:none!important}
html[data-theme=dark] .jd-shot-light{display:none!important}
html[data-theme=dark] .jd-shot-dark{display:block!important}
html[data-theme=dark] .jd-shot-frame{background:#09090b}


.jd-closing{padding:94px 0 104px;border-top:1px solid var(--ink)}
.jd-closing .shell{display:flex;justify-content:space-between;align-items:end;gap:48px}
.jd-closing h2{font-size:clamp(50px,6vw,88px);line-height:1.02;letter-spacing:-.05em}
.jd-closing h2 em{color:var(--blue-ink)}
.jd-closing-actions{display:flex;flex-direction:column;align-items:flex-start;gap:20px;padding-bottom:10px}
.jd-closing-actions .button{white-space:nowrap}
.jd-closing-actions .text-link{font-size:14px}

@media(max-width:1199px){
  /* Below this the film and the catalogue capture would shrink under ~450px
     beside the text; they go under it instead, at a readable width. */
  .jd-method-body{grid-template-columns:1fr;gap:48px}
  .jd-film{position:relative;top:auto;max-width:720px}
  .jd-catalogue{grid-template-columns:1fr;gap:52px}
  .jd-catalogue-copy>p{max-width:600px}
  .jd-shot{max-width:720px}
  .jd-caution{margin-top:52px}
}
@media(max-width:959px){
  .jd-hero{padding-top:70px;padding-bottom:84px}
  .jd-modes{margin-top:56px}
  .jd-section-head{grid-template-columns:1fr;gap:26px}
  .jd-method-body{gap:44px}
  .jd-lexicon-row{gap:48px}
  .jd-lexicon-row>span:last-child::before{left:-34px;width:18px}
  .jd-catalogue{gap:48px;padding-top:88px;padding-bottom:88px}
  .jd-models{padding:88px 0 92px}
  .jd-closing .shell{flex-direction:column;align-items:flex-start;gap:34px}
}
@media(max-width:719px){
  .jd-hero{padding-top:52px;padding-bottom:64px}
  .jd-hero h1{font-size:clamp(44px,12.5vw,64px)}
  .jd-hero-lead{font-size:16px;margin-top:22px}
  .jd-modes{margin-top:44px}
  .jd-mode{grid-template-columns:32px 1fr;padding:20px 0 24px}
  .jd-mode-label{grid-column:1/-1;margin-bottom:8px;font-size:14px}
  .jd-mode-glyph{width:19px;height:19px;margin-top:5px}
  .jd-mode-text{font-size:21px}
  .jd-mode-ref span{display:block;margin:2px 0 0;font-size:14px}
  .jd-hero-actions{margin-top:32px}
  .jd-method{padding-bottom:72px}
  .jd-steps li{grid-template-columns:44px 1fr;padding:22px 0 24px}
  .jd-step-number{font-size:34px}
  .jd-steps h3{font-size:21px}
  .jd-models{padding:64px 0 68px}
  .jd-lexicon{margin-top:40px}
  .jd-lexicon-row{grid-template-columns:1fr;gap:10px;padding:22px 0}
  .jd-lexicon-row>span:last-child{padding-left:30px}
  .jd-lexicon-row>span:last-child::before{left:0;width:18px}
  .jd-lexicon-head{display:none}
  .jd-catalogue{padding-top:64px;padding-bottom:64px}
  .jd-closing{padding:64px 0 70px}
}
