/* tough.net — brand tokens from the 27 August 2026 brand book */
:root {
  --marble: #F3EBE0;
  --ink: #2C241C;
  --taupe: #8A7A6A;
  --ivy: #3F5A48;
  --max: 40rem;
  --wide: 58rem;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Cormorant Garamond", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 400;
  font-size: 21px;
  line-height: 1.55;
  background: var(--marble);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Cream marble slab in the header chrome; short bleed into solid marble. */
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 7.1rem;
  pointer-events: none;
  z-index: 0;
  background-color: var(--marble);
  background-image: url("/marble-banner.jpg");
  background-repeat: no-repeat;
  background-position: center 32%;
  background-size: cover;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
}

.site-chrome,
.coming,
.page,
.site-footer {
  position: relative;
  z-index: 1;
}

/* Notes: thin Hedera vine in the left margin only, outside the text column. */
.margin-vine { display: none; }
@media (min-width: 56rem) {
  .has-vine .margin-vine {
    display: block;
    position: absolute;
    left: max(0.4rem, calc(50% - var(--max) / 2 - 6.2rem));
    top: 8.2rem;
    width: 5.6rem;
    height: min(38rem, calc(100% - 15rem));
    pointer-events: none;
    z-index: 0;
  }
  .notes .margin-vine img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top center;
  }
}

h1, h2, h3 { font-weight: 600; line-height: 1.2; color: var(--ink); }

a { color: var(--ivy); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-color: var(--ivy); }

/* ---------- chrome: header lockup + About · Notes ---------- */
.site-chrome {
  border-bottom: 1px solid var(--ivy);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: var(--wide);
  width: 100%;
  margin: 0 auto;
  padding: 1.45rem 1.5rem 1.35rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }

.brand-mark { height: 3.1rem; width: auto; display: block; }

.brand-name {
  font-weight: 500;
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  line-height: 1;
}
.brand-name .net {
  font-size: 0.75em;
  font-weight: 500;
}

.site-nav {
  color: var(--ivy);
  font-size: 1.1rem;
  white-space: nowrap;
}
.site-nav a { color: var(--ivy); }
.site-nav a:hover { color: var(--ink); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--ink); }
.nav-sep { color: var(--ivy); }

/* ---------- coming soon / home ---------- */
.coming {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 4rem;
}

.wordmark {
  font-size: clamp(2.4rem, 8vw, 3.6rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1;
}
.wordmark .net { font-size: 0.75em; }

.tagline {
  font-style: italic;
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--ink);
  margin-top: 0.7rem;
}

.pillars {
  color: var(--ink);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 500;
  margin-top: 2.2rem;
  line-height: 1.7;
}

.sentence {
  margin-top: 1.5rem;
}

.coming-word {
  margin-top: 2.4rem;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 500;
}

/* ---------- about / notes ---------- */
.page {
  flex: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4.5rem;
}

.page h1 {
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  font-weight: 500;
  margin-bottom: 1.6rem;
}

.mark-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.4rem 1.6rem;
  align-items: center;
  margin-bottom: 2.6rem;
}

.mark-row .about-button {
  height: 6.2rem;
  width: auto;
  display: block;
}

.mark-sentence { font-size: 1.2rem; max-width: 28rem; }

.defs { list-style: none; }

.defs > div {
  padding: 1.1rem 0;
  border-top: 1px solid var(--ivy);
}

.defs dt {
  color: var(--ink);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.defs dd { max-width: 36rem; }

.empty {
  color: var(--ink);
  font-style: italic;
}

/* ---------- write ---------- */
.write-form {
  margin-top: 1.8rem;
  max-width: 28rem;
}
.write-form label {
  display: block;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}
.write-form p { margin: 1.25rem 0 0; }
.write-form input,
.write-form textarea {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 1.15rem;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ivy);
  border-radius: 0;
  padding: 0.3rem 0 0.45rem;
  outline: none;
}
.write-form textarea {
  min-height: 8.5rem;
  resize: vertical;
  line-height: 1.45;
}
.write-form input:focus,
.write-form textarea:focus {
  border-bottom-color: var(--ink);
}
.write-form button {
  margin-top: 0.4rem;
  font: inherit;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ivy);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.write-form button:hover,
.write-form button:focus {
  color: var(--ink);
}
.write-form button:disabled { opacity: 0.55; cursor: default; }
.write-form .hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}
.form-status {
  margin-top: 1.1rem;
  font-style: italic;
}

/* ---------- chrome: footer ---------- */
.site-footer {
  border-top: 1px solid var(--ivy);
  text-align: center;
  padding: 1.4rem 1.5rem 2.2rem;
  color: var(--ink);
  font-size: 0.95rem;
}

.site-footer a { color: var(--ivy); }
.site-footer a:hover { color: var(--ink); text-decoration: none; }

.footer-feeds { margin-top: 0.35rem; }

/* ---------- responsive ---------- */
@media (max-width: 40rem) {
  .mark-row { grid-template-columns: 1fr; }
  .pillars { letter-spacing: 0.08em; }
}
