/* FIFO — shared styles for legal/document pages (privacy, terms, disclaimer, cookies, 404).
   Reuses the site's editorial "correspondence desk" register: cream paper,
   Georgia/Helvetica Neue, restrained gold accent. No external fonts, no JS. */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #f6f4f0;
  color: #1b1610;
}

body {
  font-family: Georgia, 'Iowan Old Style', 'Palatino Linotype', serif;
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.fifo-doc-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image: radial-gradient(rgba(60,50,38,0.5) 0.5px, rgba(0,0,0,0) 0.6px);
  background-size: 3px 3px;
  z-index: 0;
}

.fifo-doc-top {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem 2rem;
  padding: clamp(20px, 4vh, 40px) clamp(20px, 6vw, 80px) clamp(16px, 3vh, 28px);
  border-bottom: 1px solid rgba(27,22,16,0.16);
}

.fifo-doc-brand {
  font-family: Georgia, 'Iowan Old Style', 'Palatino Linotype', serif;
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: -0.01em;
}

.fifo-doc-brand a {
  color: #1b1610;
  text-decoration: none;
}

.fifo-doc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem 2rem;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 11px;
}

.fifo-doc-nav a {
  color: rgba(27,22,16,0.5);
  text-decoration: none;
  border-bottom: 1px solid rgba(27,22,16,0.2);
  padding-bottom: 0.3em;
}

.fifo-doc-nav a:hover,
.fifo-doc-nav a[aria-current="page"] {
  color: #1b1610;
  border-color: rgba(150,112,54,1);
}

.fifo-doc-main {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 7vh, 90px) clamp(20px, 6vw, 24px) clamp(60px, 10vh, 120px);
}

.fifo-doc-kicker {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 11px;
  color: rgba(150,112,54,1);
  margin-bottom: 1.2rem;
}

.fifo-doc-main h1 {
  font-family: Georgia, 'Iowan Old Style', 'Palatino Linotype', serif;
  font-weight: 400;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
}

.fifo-doc-updated {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
  color: rgba(27,22,16,0.45);
  margin-bottom: clamp(32px, 6vh, 56px);
  padding-bottom: clamp(24px, 4vh, 40px);
  border-bottom: 1px solid rgba(27,22,16,0.16);
}

.fifo-doc-main h2 {
  font-family: Georgia, 'Iowan Old Style', 'Palatino Linotype', serif;
  font-weight: 400;
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: -0.01em;
  margin: 2.6em 0 0.8em;
}

.fifo-doc-main h2:first-of-type { margin-top: 0; }

.fifo-doc-main h3 {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 13px;
  color: rgba(27,22,16,0.7);
  margin: 1.8em 0 0.6em;
}

.fifo-doc-main p,
.fifo-doc-main li {
  color: rgba(27,22,16,0.82);
  font-size: clamp(15px, 1.05vw, 17px);
}

.fifo-doc-main ul,
.fifo-doc-main ol {
  padding-left: 1.4em;
}

.fifo-doc-main li + li { margin-top: 0.5em; }

.fifo-doc-main a {
  color: #1b1610;
  text-decoration: underline;
  text-decoration-color: rgba(150,112,54,0.6);
  text-underline-offset: 0.15em;
}

.fifo-doc-main a:hover {
  text-decoration-color: #1b1610;
}

.fifo-doc-note {
  background: #efe9dc;
  border-left: 2px solid rgba(150,112,54,1);
  padding: 1.2em 1.4em;
  margin: 2em 0;
  font-size: 14px;
}

.fifo-doc-note p { margin: 0; }
.fifo-doc-note p + p { margin-top: 0.8em; }

.fifo-doc-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(27,22,16,0.16);
  padding: clamp(24px, 4vh, 40px) clamp(20px, 6vw, 80px);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem 2rem;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 10px;
  color: rgba(27,22,16,0.42);
}

.fifo-doc-footer a {
  color: rgba(27,22,16,0.6);
  text-decoration: none;
  border-bottom: 1px solid rgba(27,22,16,0.2);
  padding-bottom: 0.25em;
}

.fifo-doc-footer a:hover {
  color: #1b1610;
  border-color: rgba(150,112,54,1);
}

.fifo-doc-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem 1.8rem;
}

/* 404 page centers instead of reading top-to-bottom, and is built around
   the FIFO mark: bust, numeral, statement, way back. Only this page is
   affected — the legal documents above are untouched. */
.fifo-doc-main.fifo-404 {
  min-height: 52vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  max-width: 620px;
}

/* the page carries the mark's own paper so the plate has no visible edge */
body.fifo-404-page { background: #edeae1; }

/* the mark. Compact, unframed, no panel, no glow, no shadow — it reads as
   a house emblem set into the type, not as an illustration. */
.fifo-404-mark {
  display: block;
  width: clamp(168px, 58vw, 300px);
  height: auto;
  margin: 0 auto clamp(26px, 5vh, 44px);
  animation: fifo-404-mark-in 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fifo-404-mark-in {
  from { opacity: 0; transform: translateY(10px) scale(0.99); }
  to   { opacity: 1; transform: none; }
}

/* one entrance, then the page is completely still */
@media (prefers-reduced-motion: reduce) {
  .fifo-404-mark { animation: none; }
}

.fifo-404-num {
  font-family: Georgia, 'Iowan Old Style', 'Palatino Linotype', serif;
  font-size: clamp(52px, 13vw, 92px);
  line-height: 1;
  letter-spacing: 0.1em;
  /* the tracking is applied to the right of the last glyph too */
  text-indent: 0.1em;
  color: #1b1610;
}

/* the statement sits under the numeral as a quiet caps line rather than a
   display heading — the numeral is the heading now */
.fifo-doc-main.fifo-404 h1 {
  font-size: clamp(12px, 2.6vw, 15px);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  line-height: 1.6;
  margin: clamp(22px, 4vh, 34px) 0 clamp(18px, 3vh, 26px);
}

.fifo-doc-main.fifo-404 p {
  max-width: 34ch;
  margin: 0 auto;
}

.fifo-doc-main.fifo-404 p.fifo-404-return {
  margin-top: clamp(30px, 6vh, 52px);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 11px;
}
