/* Art Jewelry. One stylesheet for every public page; the admin inlines its own.
   Palette is black, white and grays only. Two faces ship: Cormorant Garamond
   Light for the mark and headings, Tenor Sans for everything small. */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-garamond-300-latin.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Tenor Sans";
  src: url("/assets/fonts/tenor-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --ink: #000000;
  /* 5.7:1 on white, so the small footer type still passes AA. */
  --gray: #5f5f5f;
  --line: #e4e4e4;
  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Tenor Sans", "Gill Sans", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
::selection { background: var(--ink); color: var(--paper); }

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--paper);
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  z-index: 10;
}
.skip:focus { top: 12px; }

/* ------------------------------------------------------------- the mark */

.stage {
  flex: 1;
  display: grid;
  place-items: center;
  padding: var(--gutter);
}

.mark {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(4rem, 19vw, 12rem);
  line-height: 1;
  letter-spacing: .22em;
  /* Tracking adds space after the last letter too; this gives it back so the
     word sits on the true centre line. */
  margin-right: -.22em;
}

/* ------------------------------------------------------------- footer */

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 18px var(--gutter);
  padding-bottom: max(18px, env(safe-area-inset-bottom));
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
  border-top: 1px solid var(--line);
  font-size: .75rem;
  line-height: 1;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gray);
}
.foot__v { font-variant-numeric: tabular-nums; letter-spacing: .1em; text-transform: none; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot nav a {
  display: inline-block;
  /* 12px text, 32px tall hit area. */
  padding: 10px 0;
  text-decoration: none;
  transition: color .2s ease;
}
.foot nav a:hover, .foot nav a[aria-current="page"] { color: var(--ink); }

@media (max-width: 360px) {
  .foot { letter-spacing: .1em; gap: 6px 16px; }
  .foot nav { gap: 4px 14px; }
}

/* ------------------------------------------------------------- legal pages */

.top {
  padding: 22px var(--gutter) 0;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
}
.top a {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.6rem;
  line-height: 1;
  letter-spacing: .22em;
  text-decoration: none;
}

.doc {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(40px, 9vw, 96px) var(--gutter) clamp(56px, 10vw, 112px);
}
.doc h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: .01em;
}
.doc .meta {
  margin: 14px 0 0;
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gray);
}
.doc .lede { margin: 32px 0 0; font-size: 1.06rem; }
.doc h2 {
  margin: 48px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  line-height: 1.2;
}
.doc p, .doc ul { margin: 14px 0 0; }
.doc ul { padding-left: 1.1em; }
.doc li + li { margin-top: 6px; }
.doc a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
.doc code { font-family: ui-monospace, Consolas, monospace; font-size: .9em; }

/* ------------------------------------------------------------- 404 */

.lost { text-align: center; }
.lost .mark { font-size: clamp(4rem, 17vw, 10rem); }
.lost p {
  margin: 22px 0 0;
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gray);
}
.lost p a { text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.lost p a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
