@import url('/assets/estudio/tema.css');

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  color: var(--mesa-ink);
  background: var(--mesa-paper);
  font: 400 1rem/1.5 var(--mesa-sans);
}
main { padding-bottom: clamp(3rem, 7vw, 6rem); }
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .2rem 1rem;
  min-height: 56px;
  padding: .4rem var(--mesa-pad);
  border-bottom: 1px solid var(--mesa-rule);
}
nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--mesa-ink);
  font: 400 .75rem/1.45 var(--mesa-mono);
  text-decoration: none;
  text-transform: uppercase;
}
a:hover { color: var(--mesa-blue); }
nav a[download] { color: var(--mesa-blue); }
a:focus-visible { outline: 2px solid var(--mesa-blue); outline-offset: 3px; }
article {
  width: min(62rem, calc(100% - 2 * var(--mesa-pad)));
  margin: clamp(1.75rem, 5vw, 4rem) auto 0;
  padding: clamp(1rem, 4.5vw, 3.25rem);
  background: var(--mesa-surface);
  border: 1px solid var(--mesa-rule);
  border-radius: var(--mesa-radius);
}
header { padding-bottom: 1.5rem; border-bottom: 1px solid var(--mesa-ink); }
h1 {
  margin: .55rem 0 1rem;
  font-size: clamp(2.25rem, 5.5vw, 4.75rem);
  font-weight: 500;
  line-height: .99;
  letter-spacing: -.06em;
}
p, dd { margin: 0; }
header > p:last-child { max-width: 60ch; }
.kind, .identity, .review-head span, .review dt, .sheet-preview figcaption {
  font: 400 .76rem/1.5 var(--mesa-mono);
}
.kind { color: var(--mesa-blue); text-transform: uppercase; letter-spacing: .035em; }
.sheet-preview { margin: 1.5rem 0 0; }
.sheet-preview img { display: block; width: 100%; height: auto; border: 1px solid var(--mesa-rule); }
.sheet-preview figcaption { margin-top: .7rem; }
.sheet-preview a { color: var(--mesa-blue); text-underline-offset: .15rem; }
.sheet-guide { margin-top: 2rem; }
.sheet-guide dl { margin: 1rem 0 0; }
.sheet-guide dl > div {
  display: grid;
  grid-template-columns: minmax(9rem, 1fr) 3fr;
  gap: 1rem;
  padding: .8rem 0;
  border-top: 1px solid var(--mesa-rule);
}
.sheet-guide dt { color: var(--mesa-muted); font: .76rem/1.5 var(--mesa-mono); }
.sheet-guide dd { max-width: 58ch; }
.validation-example { max-width: 68ch; margin-top: .85rem; }
.identity { padding: 1.2rem 0; color: var(--mesa-muted); }
.sheet table { width: 100%; border-spacing: 0; font-variant-numeric: tabular-nums; }
.sheet thead th {
  background: var(--mesa-paper);
  color: var(--mesa-ink);
  font: 400 .77rem/1.35 var(--mesa-mono);
}
.sheet th, .sheet td { padding: .8rem .65rem; border-bottom: 1px solid var(--mesa-rule); text-align: right; }
.sheet th:first-child { text-align: left; }
.sheet tbody th { font-weight: 400; }
.sheet dl { max-width: 23rem; margin: 1.3rem 0 0 auto; }
.sheet dl div { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .35rem .65rem; }
.sheet dd { font-variant-numeric: tabular-nums; }
.sheet dl div:last-child {
  margin-top: .4rem;
  padding-block: .55rem;
  color: var(--mesa-paper);
  background: var(--mesa-ink);
  font-size: 1.3rem;
}
.review { padding: 1.5rem 0; border-bottom: 1px solid var(--mesa-rule); }
.review:last-child { padding-bottom: 0; border-bottom: 0; }
.review-head { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; }
h2 { margin: 0; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.1; letter-spacing: -.045em; font-weight: 500; }
.review-head span {
  padding: .15rem .45rem;
  border: 1px solid var(--mesa-rule);
  border-radius: var(--mesa-radius);
  color: var(--mesa-ink);
  text-transform: uppercase;
}
.review dl { display: grid; gap: .65rem; margin: 1rem 0 0; }
.review dl div { display: grid; grid-template-columns: 10.5rem minmax(0, 1fr); gap: .75rem; }
.review dt { color: var(--mesa-muted); }
@media (max-width: 600px) {
  .sheet-guide dl > div { grid-template-columns: 1fr; gap: .25rem; }
  nav { gap: .25rem .6rem; }
  nav a { font-size: .68rem; }
  .sheet table { font-size: .85rem; }
  .sheet th, .sheet td { padding: .65rem .2rem; }
  .sheet thead th { font-size: .68rem; }
  .review dl div { grid-template-columns: minmax(0, 1fr); gap: .12rem; }
}
@media (max-width: 370px) {
  .sheet table { font-size: .78rem; }
  .sheet th, .sheet td { padding-inline: .12rem; }
}
