/* Sessura — case study № 07
   Set in the product's own two registers: the geometric display face the
   lockup is drawn from, and the mono face the product reserves for codes and
   clock times. Every colour below is a token from the run's own
   UIUX_DESIGN_TOKENS.json; nothing here is derived from a brand hue. */

:root {
  /* brand primitives — sessura_logo_oneshot_20260815_2 canonical palette */
  --clay:   #C4786A;
  --ink:    #1B2420;
  --paper:  #F3EEE6;
  --sage:   #6B8476;
  --wine:   #6E3540;

  /* authored semantic roles — declared, never derived */
  --success: #0B6B45;
  --warning: #8A5A00;
  --blocked: #A3241C;
  --focus:   #1D5FD0;
  --selected:#233029;
  --track:   #E2D8C7;

  /* page grounds, one step either side of the product's paper */
  --ground:  #EFE9E0;
  --plate:   #F7F3EC;
  --rule:    rgba(27, 36, 32, .14);
  --hair:    rgba(27, 36, 32, .09);
  --quiet:   rgba(27, 36, 32, .62);
  --quieter: rgba(27, 36, 32, .45);

  --display: "Avenir Next", "Futura", "Century Gothic", "Hiragino Kaku Gothic ProN", "Hiragino Sans", system-ui, sans-serif;
  --body: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium", "Noto Sans JP", system-ui, sans-serif;
  --mono: Menlo, "SF Mono", ui-monospace, "JetBrains Mono", monospace;

  --measure: 34rem;
  --gutter: 8.5rem;
}

* { box-sizing: border-box; }

html {
  background: var(--ground);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: .01em;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
}

/* Focus is drawn for keyboard focus only. The product made the same decision
   after a review found a persistent ring reading as a browser artefact. */
:where(a, button):focus { outline: none; }
:where(a, button):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ------------------------------------------------------------------ nav */

.gnav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--ground) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--hair);
}

.gnav__in {
  max-width: 76rem;
  margin: 0 auto;
  padding: .85rem 2rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
}

.gnav__mark {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: .06em;
  font-size: .92rem;
}

.gnav__here {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--quiet);
}

.gnav__here b {
  font-weight: 500;
  color: var(--clay);
}

/* ------------------------------------------------------------- masthead */

.masthead {
  border-bottom: 1px solid var(--rule);
  background:
    linear-gradient(180deg, var(--plate) 0%, var(--ground) 100%);
}

.masthead__in {
  max-width: 76rem;
  margin: 0 auto;
  padding: 5.5rem 2rem 4rem;
  display: grid;
  grid-template-columns: var(--gutter) minmax(0, 1fr);
  gap: 2rem;
}

.masthead__rail {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--quieter);
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding-top: .6rem;
}

.masthead__rail i {
  display: block;
  width: 2.2rem;
  height: 1px;
  background: var(--clay);
  margin-bottom: .7rem;
}

.masthead__stamp {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--quiet);
  margin: 0 0 1.4rem;
}

.masthead__stamp b {
  font-weight: 500;
  color: var(--ink);
  text-transform: none;
  letter-spacing: .04em;
}

.masthead h1 {
  font-family: var(--display);
  font-size: clamp(3.2rem, 8vw, 5.4rem);
  line-height: .96;
  letter-spacing: -.02em;
  font-weight: 600;
  margin: 0 0 1rem;
}

.masthead__subject {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  line-height: 1.4;
  font-weight: 600;
  color: var(--clay);
  margin: 0 0 1.8rem;
  max-width: 30ch;
}

.masthead__lede {
  max-width: var(--measure);
  margin: 0 0 2.8rem;
  color: rgba(27, 36, 32, .86);
}

/* ------------------------------------------------------------- docket */

.docket {
  margin: 0 0 2.8rem;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem 2.5rem;
  max-width: 54rem;
}

.docket > div {
  display: grid;
  grid-template-columns: 10.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--hair);
}

.docket dt {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--quieter);
}

.docket dd {
  margin: 0;
  font-size: .95rem;
  line-height: 1.65;
}

.docket dd b { font-weight: 600; }

.v {
  font-family: var(--mono);
  font-size: .88em;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.id {
  font-family: var(--mono);
  font-size: .86em;
  color: var(--sage);
  word-break: break-word;
}

.ctl {
  font-family: var(--display);
  font-weight: 600;
  font-size: .94em;
  padding: .05em .45em;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--plate);
  white-space: nowrap;
}

/* ----------------------------------------------------------- register */

.register {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 3rem;
  max-width: 54rem;
  padding-top: .5rem;
}

.register__head {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 .7rem;
}

.register ol {
  list-style: none;
  margin: 0 0 1.8rem;
  padding: 0;
}

.register li { border-top: 1px solid var(--hair); }

.register a {
  display: grid;
  grid-template-columns: 5.4rem minmax(0, 1fr);
  gap: .8rem;
  padding: .5rem 0;
  text-decoration: none;
  color: inherit;
  align-items: baseline;
}

.register a:hover span { color: var(--clay); }

.register b {
  font-family: var(--mono);
  font-size: .74rem;
  font-weight: 500;
  color: var(--quieter);
  font-variant-numeric: tabular-nums;
}

.register span {
  font-size: .88rem;
  line-height: 1.5;
  transition: color .12s ease;
}

/* -------------------------------------------------------------- record */

.record { display: block; }

.entry {
  border-bottom: 1px solid var(--rule);
  padding: 4.5rem 0 4rem;
}

.entry__in {
  max-width: 76rem;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: var(--gutter) minmax(0, 1fr);
  gap: 2rem;
}

.entry__gutter {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .12em;
  color: var(--quieter);
  padding-top: .55rem;
  position: sticky;
  top: 4.5rem;
  align-self: start;
  height: max-content;
}

.entry__stamp {
  font-size: .82rem;
  letter-spacing: .06em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.entry__zone { text-transform: uppercase; }

.entry__actor { color: var(--sage); }

.entry--desk .entry__stamp { color: var(--clay); }
.entry--blocked .entry__stamp { color: var(--blocked); }
.entry--system .entry__stamp { color: var(--sage); }

.measure { max-width: var(--measure); }

.measure h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.4vw, 2.15rem);
  line-height: 1.28;
  letter-spacing: -.01em;
  font-weight: 600;
  margin: 0 0 1.3rem;
}

.measure h3 {
  font-family: var(--display);
  font-size: 1.12rem;
  line-height: 1.5;
  font-weight: 600;
  margin: 2.6rem 0 .9rem;
  color: var(--ink);
}

.measure h4 {
  font-family: var(--display);
  font-size: .98rem;
  font-weight: 600;
  margin: 0 0 .4rem;
}

.measure p { margin: 0 0 1.15rem; }

.measure p:last-child { margin-bottom: 0; }

.measure em { font-style: italic; }

.measure strong { font-weight: 600; }

/* ---------------------------------------------------------- quotations */

.said {
  margin: 1.8rem 0;
  padding: 1.15rem 1.35rem;
  background: var(--plate);
  border-left: 3px solid var(--clay);
  border-radius: 0 4px 4px 0;
}

.said p {
  margin: 0 0 .4rem;
  font-family: var(--display);
  font-size: 1.02rem;
  line-height: 1.62;
  font-weight: 600;
}

.said p:last-of-type { margin-bottom: .7rem; }

.said__slot {
  display: block;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .1em;
  color: var(--quieter);
  text-transform: uppercase;
}

.said--success { border-left-color: var(--success); }
.said--blocked { border-left-color: var(--blocked); }

.note {
  margin: 1.8rem 0;
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: color-mix(in srgb, var(--plate) 60%, transparent);
}

.note__label {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 .5rem !important;
}

.note p:last-child { margin-bottom: 0; }

.note p { font-size: .93rem; line-height: 1.75; }

/* ------------------------------------------------------------- lists */

.refusals, .flags {
  list-style: none;
  margin: 1.6rem 0;
  padding: 0;
}

.refusals li, .flags li {
  border-top: 1px solid var(--hair);
  padding: .85rem 0;
  font-size: .93rem;
  line-height: 1.7;
}

.refusals b, .flags b {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: .98rem;
  margin-bottom: .25rem;
}

.flags b { color: var(--wine); }

.quadrant {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  margin: 1.8rem 0;
}

.quadrant > div {
  background: var(--plate);
  padding: 1rem 1.1rem;
}

.quadrant p {
  font-size: .88rem;
  line-height: 1.65;
  margin: 0 0 .4rem;
}

.qwhere {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .08em;
  color: var(--quieter);
  margin: .5rem 0 0 !important;
}

/* ------------------------------------------------------------- tables */

.cover {
  width: 100%;
  border-collapse: collapse;
  margin: 1.8rem 0;
  font-size: .86rem;
}

.cover caption {
  text-align: left;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--clay);
  padding-bottom: .6rem;
}

.cover th, .cover td {
  text-align: left;
  padding: .5rem .7rem .5rem 0;
  border-bottom: 1px solid var(--hair);
  vertical-align: top;
}

.cover th {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--quieter);
}

.cover td.n {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cover .ok { color: var(--success); font-weight: 600; }

/* ------------------------------------------------------------ exhibits */

.exhibit {
  margin: 3.2rem 0 0;
  padding: 0;
}

.exhibit--full {
  max-width: 76rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0 2rem;
}

.exhibit__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem 1rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 1.2rem;
}

.exhibit__id {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .16em;
  color: var(--clay);
}

.exhibit__name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
}

.exhibit__meta {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .08em;
  color: var(--quieter);
  margin-left: auto;
}

.exhibit__plate {
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 30px 60px -50px rgba(27, 36, 32, .7);
}

.exhibit__plate img {
  display: block;
  width: 100%;
  height: auto;
}

.exhibit__plate--dark { background: var(--ink); }

.reading {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0 2rem;
}

.reading li {
  border-top: 1px solid var(--hair);
  padding: .75rem 0;
  font-size: .87rem;
  line-height: 1.65;
}

.reading b {
  display: block;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: .2rem;
}

.exhibit__foot {
  font-size: .84rem;
  line-height: 1.7;
  color: var(--quiet);
  margin: 1.1rem 0 0;
  max-width: var(--measure);
}

/* ------------------------------------------------------------ livedesk */

.livedesk {
  margin: 2.4rem 0 0;
  padding: 1.6rem 1.7rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 6px;
}

.livedesk__label {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 .5rem !important;
}

.livedesk__h {
  font-family: var(--display);
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 600;
  margin: 0 0 .8rem !important;
  color: var(--paper) !important;
}

.livedesk__line {
  font-size: .93rem;
  line-height: 1.75;
  color: rgba(243, 238, 230, .84);
}

.livedesk .ctl {
  background: rgba(243, 238, 230, .1);
  border-color: rgba(243, 238, 230, .28);
  color: var(--paper);
}

.livedesk .id { color: #A8BCA9; }

.livedesk__cta {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: .98rem;
  color: var(--ink);
  background: var(--paper);
  padding: .65rem 1.3rem;
  border-radius: 4px;
  text-decoration: none;
  margin: .3rem 0 1.2rem;
}

.livedesk__cta:hover { background: var(--track); }

.ledger { margin: 0; }

.ledger > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 9rem;
  gap: 1rem;
  padding: .6rem 0;
  border-top: 1px solid rgba(243, 238, 230, .16);
  align-items: baseline;
}

.ledger dt {
  font-size: .84rem;
  line-height: 1.6;
  color: rgba(243, 238, 230, .72);
}

.ledger dd {
  margin: 0;
  font-family: var(--mono);
  font-size: .82rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.ledger .zero { color: var(--sage); }
.ledger .held { color: var(--clay); }

/* ------------------------------------------------------------ colophon */

.colophon {
  background: var(--plate);
  border-top: 1px solid var(--rule);
  padding: 4.5rem 0 5rem;
}

.wrap {
  max-width: 76rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.colophon h2 {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0 0 1.2rem;
}

.colophon > .wrap > p {
  max-width: var(--measure);
  margin: 0 0 2.4rem;
  font-size: .95rem;
  line-height: 1.8;
}

.colophon__blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--rule);
}

.colophon__blocks h3 {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 .6rem;
}

.colophon__blocks p {
  font-size: .87rem;
  line-height: 1.75;
  margin: 0;
  color: rgba(27, 36, 32, .82);
}

.disclosure {
  margin: 2.4rem 0 1.4rem !important;
  padding-top: 1.6rem;
  border-top: 1px solid var(--rule);
  font-size: .84rem !important;
  color: var(--quiet);
  max-width: none !important;
}

.imprint {
  font-family: var(--mono);
  font-size: .72rem;
  line-height: 2;
  letter-spacing: .04em;
  color: var(--quieter);
  margin: 0 !important;
  max-width: none !important;
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 60rem) {
  :root { --gutter: 0; }

  .masthead__in,
  .entry__in {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.2rem;
  }

  .masthead__rail { flex-direction: row; gap: .6rem; align-items: center; }
  .masthead__rail i { margin: 0 .4rem 0 0; }

  .entry__gutter {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: .3rem .9rem;
    padding-top: 0;
  }

  .docket,
  .register,
  .quadrant { grid-template-columns: minmax(0, 1fr); }

  .docket > div { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
}

@media (max-width: 40rem) {
  body { font-size: 16px; }

  .masthead__in { padding: 3.5rem 1.25rem 2.5rem; }
  .entry__in, .exhibit--full, .wrap { padding-left: 1.25rem; padding-right: 1.25rem; }
  .gnav__in { padding: .75rem 1.25rem; flex-direction: column; gap: .15rem; align-items: flex-start; }
  .entry { padding: 3rem 0 2.5rem; }
  .exhibit__meta { margin-left: 0; width: 100%; }
  .ledger > div { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
  .ledger dd { text-align: left; }
}

@media print {
  .gnav { position: static; }
  .entry__gutter { position: static; }
}
