/* The site's base (base.css), loaded after tokens.css by every page: the page, links, the small-caps recipe, and the
   few pieces every page shares (buttons, the text link, the section label, the closing block). */
html,body{background:var(--paper);color:var(--ink)}
body{margin:0;font-family:var(--display);-webkit-font-smoothing:antialiased;font-size:var(--t-text)}
a{color:inherit;text-decoration:none}
button,select,input,textarea{font:inherit;color:inherit}
[hidden]{display:none!important}
.caps{text-transform:uppercase;font-weight:700;font-stretch:condensed;letter-spacing:.004em}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Buttons. One primary (the black block), one outline, one small size for the slim bars, one for dark glass. A button that
   floats over imagery or the pill sets --btn-r to round its corners a little (the homepage and the pill's panels). */
.btn{all:unset;box-sizing:border-box;cursor:pointer;display:inline-block;background:var(--ink);color:#fff;font-size:var(--t-small);padding:15px 26px 14px;
  border-radius:var(--btn-r,0);text-align:center;white-space:nowrap;text-transform:uppercase;font-weight:700;font-stretch:condensed;letter-spacing:.004em}
.btn:hover{background:#000}
.btn:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.btn--line{background:transparent;color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}
.btn--line:hover{background:transparent}
.btn--sm{padding:11px 18px 10px}
.btn--inv{background:#fff;color:var(--ink)}
.btn--inv:hover{background:#e9e9e9}
/* On a phone the small button is still a thumb-sized target (40px) */
@media (max-width:760px){ .btn--sm{padding:14px 16px 13px} }

/* The text link: small caps, underlined; the line thickens on hover */
.link{text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px}
.link:hover{text-decoration-thickness:1.5px}
.link.caps{font-size:var(--t-small)}

/* The closing block: the page's one sentence and Start a project. Each page keeps its own words. The Post adds the ink
   rule (.close--rule). The Studio's counter and the Catalog's close set only their own margins. */
.close{margin:var(--sp) var(--pad) 0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:28px 64px;align-items:end}
.close p{margin:0;font-size:var(--t-statement);line-height:1.08;letter-spacing:-.02em;text-wrap:balance}
.close--rule{border-top:var(--rule);padding-top:clamp(24px,4vh,40px)}
@media (max-width:760px){
  .close{grid-template-columns:minmax(0,1fr);gap:22px}
  .close p{line-height:1.12}
  .close .btn{width:100%}
}

/* Previous and next: two columns, a small label (with an index number where there is one) over the name, which is
   underlined on hover. The Services offer pages and the Journal posts both use it. */
.turn{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 var(--gap)}
.turn a{display:block;min-width:0}
.turn .k{display:flex;gap:1em;align-items:baseline;margin-bottom:8px}
.turn .k .no{font-weight:400;font-stretch:normal;letter-spacing:var(--num-ls);font-variant-numeric:tabular-nums}
.turn .nm{display:block;font-size:var(--t-sub);line-height:1.05;text-wrap:balance;
  text-decoration:underline;text-decoration-color:transparent;text-decoration-thickness:1px;text-underline-offset:4px;transition:text-decoration-color .2s}
.turn a:hover .nm,.turn a:focus-visible .nm{text-decoration-color:var(--ink)}
@media (prefers-reduced-motion:reduce){ .turn .nm{transition:none} }

/* The section label: small grey caps, 12px on a phone. Add .bk-dot for the ultramarine dot on a top-level section.
   Labels read the same everywhere: a part's name, a list's name, a column's name. */
.k{display:block;margin:0;font-size:var(--t-label);line-height:1.4;color:var(--mute)}
@media (max-width:760px){ .k{font-size:var(--t-small)} }
