/* Tidepiece · tidepiece.com
   Single visual world: a printed catalog on limed plaster.
   The instrument is the only thing that glows. */

:root {
  --paper: #EDE8DF;
  --paper-2: #E4DDCF;
  --ink: #28251E;
  --muted: #71695B;
  --line: rgba(40, 37, 30, .18);
  --line-strong: rgba(40, 37, 30, .38);
  --brass: #8F7748;
  --harbor: #39463F;
  --panel: #0B0A08;
  --bezel-hi: #3E3A31;
  --bezel-lo: #16140F;
  --serif-display: "Fraunces", "Palatino Linotype", Georgia, serif;
  --serif-text: "Libre Baskerville", "Baskerville", "Palatino Linotype", Georgia, serif;
  --sans: "Jost", "Futura", "Avenir Next", "Century Gothic", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { background: var(--paper); scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif-text);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1020px; margin: 0 auto; padding: 0 28px; }
.prose { max-width: 62ch; }
.prose p + p { margin-top: 1.1em; }
.prose a, .qa a {
  color: var(--harbor);
  text-decoration: underline;
  text-decoration-color: var(--brass);
  text-underline-offset: 3px;
}

section { padding: 92px 0; border-top: 1px solid var(--line); }
section.hero { border-top: none; padding: 84px 0 96px; }
section.first { border-top: none; }

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--brass);
}
h2 {
  font-family: var(--serif-display);
  font-size: clamp(27px, 3.6vw, 38px);
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1.2;
  margin: 16px 0 30px;
  text-wrap: balance;
}
.caption {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

/* ---------- Top bar ---------- */
.topbar { border-bottom: 1px solid var(--line); }
.topbar .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 28px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.brand {
  font-family: var(--serif-display);
  font-weight: 450;
  font-size: 16px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.topbar .nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 28px;
}
.topbar .nav a:not(.cta) {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s ease;
}
.topbar .nav a:not(.cta):hover { color: var(--brass); }
.topbar a:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; }
@media (max-width: 600px) {
  .topbar .bar, .topbar .nav { justify-content: center; }
}

/* ---------- Hero ---------- */
.hero { text-align: center; }
.hero .eyebrow { display: block; margin-bottom: 48px; }
.sign {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(10px, 1.8vw, 16px);
  background: linear-gradient(175deg, var(--bezel-hi), var(--bezel-lo) 70%);
  border-radius: 5px;
  box-shadow: 0 26px 64px -26px rgba(20, 18, 12, .55), 0 2px 6px rgba(20, 18, 12, .3);
}
.sign-face {
  background: var(--panel);
  padding: clamp(10px, 2vw, 18px) clamp(12px, 2.4vw, 22px);
  border-radius: 2px;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, .9);
}
.sign-face canvas { display: block; width: 100%; aspect-ratio: 96 / 17; }
.sign-caption { margin-top: 18px; }

h1.wordmark {
  font-family: var(--serif-display);
  font-size: clamp(40px, 7.6vw, 74px);
  font-weight: 450;
  letter-spacing: .28em;
  text-indent: .28em;
  text-transform: uppercase;
  margin-top: 66px;
  line-height: 1.1;
}
@media (max-width: 520px) {
  h1.wordmark { font-size: clamp(26px, 8.4vw, 36px); letter-spacing: .2em; text-indent: .2em; }
}
.hero-rule {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  margin: 32px auto 28px; max-width: 420px;
}
.hero-rule::before, .hero-rule::after {
  content: ""; flex: 1; height: 1px; background: var(--line-strong);
}
.hero-rule svg { width: 30px; height: 30px; color: var(--brass); }
.tagline {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 450;
  font-size: clamp(20px, 2.8vw, 26px);
  color: var(--harbor);
}
.hero-sub {
  max-width: 52ch;
  margin: 34px auto 0;
  color: var(--ink);
}
.cta {
  display: inline-block;
  margin-top: 42px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line-strong);
  padding: 15px 34px 14px;
  transition: background-color .25s ease, color .25s ease;
}
.cta:hover { background: var(--ink); color: var(--paper); }
button.cta { background: transparent; cursor: pointer; }
.cta.cta-small {
  margin-top: 0;
  padding: 10px 18px 9px;
  font-size: 10px;
  letter-spacing: .24em;
}

/* ---------- Spec list ---------- */
.speclist { border-top: 1px solid var(--line); margin-top: 40px; max-width: 760px; }
.speclist .srow {
  display: grid; grid-template-columns: 170px 1fr; gap: 26px;
  padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 15.5px;
}
@media (max-width: 560px) { .speclist .srow { grid-template-columns: 1fr; gap: 4px; } }
.speclist .sk {
  font-family: var(--sans); font-size: 10.5px; font-weight: 500;
  letter-spacing: .24em; text-transform: uppercase; color: var(--muted); padding-top: 5px;
}

.pull {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 450;
  font-size: clamp(21px, 3vw, 27px);
  line-height: 1.45;
  color: var(--harbor);
  max-width: 24em;
  margin: 52px 0 0;
  text-wrap: balance;
}

/* The edition mark, per the brand guide: Arabic numeral for the unit, Roman
   for the denominator, italic. Set larger than body copy and in brass so it
   reads as a mark on the page, not a sentence. */
.editionmark {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 450;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.2;
  color: var(--brass);
  margin: 46px 0 0;
}
.editionmark + .caption { margin-top: 12px; }

/* ---------- In residence (gallery) ---------- */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 44px;
}
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr; } }
/* Background-removed product shot floated into the Idea prose so the words
   wrap around the angled instrument. No frame: it reads as an object on the
   page, not a photo in a mat. */
.idea-float {
  float: right;
  width: 46%;
  max-width: 340px;
  height: auto;
  margin: 4px -12px 8px 28px;
  shape-outside: url("/img/instrument.png");
  shape-margin: 14px;
  filter: drop-shadow(0 18px 30px rgba(20, 22, 20, 0.28));
}
@media (max-width: 640px) {
  .idea-float {
    float: none;
    display: block;
    width: 78%;
    margin: 6px auto 22px;
    shape-outside: none;
  }
}

.gallery figure {
  border: 1px solid var(--line-strong);
  background: var(--paper-2);
  padding: 14px 14px 0;
}
.gallery img {
  display: block;
  width: 100%;
  height: auto;
}
.gallery figcaption { padding: 14px 6px 12px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); margin-top: 44px; max-width: 760px; }
.qa { padding: 30px 0 34px; border-bottom: 1px solid var(--line); }
.qa h3 {
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: .01em;
  line-height: 1.35;
  margin-bottom: 12px;
}
.qa p { max-width: 62ch; }
.qa p + p { margin-top: 1em; }

/* ---------- Service commissions ---------- */
.commissions { border-top: 1px solid var(--line); margin-top: 40px; max-width: 820px; }
.commission {
  display: grid; grid-template-columns: 200px 1fr; gap: 30px;
  padding: 28px 0; border-bottom: 1px solid var(--line);
}
@media (max-width: 640px) { .commission { grid-template-columns: 1fr; gap: 8px; } }
.commission .c-name {
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: .26em; text-transform: uppercase; padding-top: 7px;
}
.commission p { max-width: 56ch; }

/* ---------- Inquiry / contact form ---------- */
.inquiry-form { max-width: 560px; margin-top: 44px; }
.field { margin-bottom: 34px; }
.field label {
  display: block;
  font-family: var(--sans); font-size: 10.5px; font-weight: 500;
  letter-spacing: .26em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 10px;
}
.field input, .field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--serif-text);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  padding: 6px 2px 10px;
  border-radius: 0;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--brass);
}
.field input:focus-visible, .field textarea:focus-visible, .cta:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 4px;
}
.form-note { font-size: 14px; color: var(--muted); font-style: italic; margin-top: 26px; }
.hidden { display: none; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 80px;
  text-align: center;
}
footer svg { width: 34px; height: 34px; color: var(--brass); margin-bottom: 20px; }
footer .fm {
  font-family: var(--serif-display); font-weight: 450; letter-spacing: .3em; text-indent: .3em;
  text-transform: uppercase; font-size: 17px; margin-bottom: 16px;
}
footer .footnav {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 12px 28px; margin-bottom: 18px;
}
footer .footnav a {
  font-family: var(--sans); font-size: 10.5px; font-weight: 500;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; transition: color .2s ease;
}
footer .footnav a:hover { color: var(--brass); }
footer .footnav a:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero .eyebrow, .hero h1, .hero-rule, .tagline, .hero-sub, .hero .cta {
    animation: rise .9s cubic-bezier(.2, .6, .2, 1) both;
  }
  .hero h1 { animation-delay: .25s; }
  .hero-rule { animation-delay: .4s; }
  .tagline { animation-delay: .5s; }
  .hero-sub { animation-delay: .6s; }
  .hero .cta { animation-delay: .75s; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
