/* SJB Ceramics: coming-soon pages. Tokens follow the approved style guide (design/style-guide.src.html). */

@font-face {
  font-family: "Tenor Sans";
  src: url("fonts/tenor-sans-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Mulish";
  src: url("fonts/mulish-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --chalk: #FFFFFF;
  --salt: #F6F5F2;
  --mist: #E8EDEF;
  --sand: #E3D5BD;
  --seaglass: #BCCFC9;
  --navy: #163E64;
  --ink: #1B2632;
  --stone: #5B6670;
  --line: #DCE2E5;

  --display: "Tenor Sans", "Gill Sans", Optima, sans-serif;
  --body: "Mulish", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --gutter: clamp(20px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--chalk);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
h1, h2 { font-family: var(--display); font-weight: 400; color: var(--navy); line-height: 1.2; margin: 0; text-wrap: balance; }
p { margin: 0; }

.label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--stone);
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Brand lockup: monogram beside the spaced-caps name */
.lockup { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.lockup img { width: 44px; height: auto; }
.wordmark {
  font-family: var(--display);
  color: var(--navy);
  font-size: 1rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Home: content beside the work on wide screens, stacked on phones */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; min-height: 100svh; }
.content {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 48px;
  padding: 40px var(--gutter) 32px;
  min-width: 0;
}
.content > * { min-width: 0; }
.intro { display: grid; align-content: center; gap: 22px; max-width: 30rem; }
.intro h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
.intro .lead { color: var(--stone); font-size: 1.05rem; max-width: 34ch; }

.signup { display: grid; gap: 12px; padding-top: 12px; }
.signup p { font-size: .95rem; }
.signup form { display: flex; width: 100%; max-width: 440px; }
.signup input[type="email"] {
  flex: 1; min-width: 0;
  font: inherit; font-size: .95rem;
  padding: 13px 16px;
  border: 1px solid var(--line); border-right: 0;
  background: var(--chalk); color: var(--ink);
  border-radius: 0;
}
.signup input[type="email"]::placeholder { color: var(--stone); }
.signup input[type="email"]:focus-visible { outline-offset: -2px; }
.fine { font-size: .8rem; color: var(--stone); max-width: 44ch; }

.btn {
  font: inherit; font-size: .74rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  padding: 14px 24px;
  border: 1px solid var(--navy); border-radius: 0;
  background: var(--navy); color: var(--chalk);
  cursor: pointer; text-decoration: none; display: inline-block;
  transition: background .4s var(--ease), border-color .4s var(--ease);
}
.btn:hover { background: var(--ink); border-color: var(--ink); }

.contact { display: grid; gap: 6px; font-size: .92rem; }
.contact .label { margin-bottom: 4px; }

.foot {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  font-size: .78rem; color: var(--stone);
  border-top: 1px solid var(--line); padding-top: 18px;
}
.foot a { color: var(--stone); }

/* The photos: stacked on wide screens, side by side on phones */
.work { display: grid; grid-template-rows: 3fr 2fr; gap: 6px; background: var(--chalk); min-width: 0; }
.work figure { position: relative; overflow: hidden; margin: 0; background: var(--sand); min-height: 0; }
.work picture, .work img { width: 100%; height: 100%; }
.work img { object-fit: cover; animation: settle 2.4s var(--ease) both; }
.work .caption {
  position: absolute; left: 20px; bottom: 18px;
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--chalk); background: rgba(22, 62, 100, .55);
  padding: 5px 10px;
}

.rise { animation: rise .9s var(--ease) both; }
.rise.d1 { animation-delay: .1s; }
.rise.d2 { animation-delay: .25s; }
.rise.d3 { animation-delay: .4s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.05); } to { transform: scale(1); } }

@media (max-width: 820px) {
  .split { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .work { order: -1; grid-template-rows: none; grid-template-columns: 1fr 1fr; height: 38vh; min-height: 220px; max-height: 360px; }
  .work .caption { left: 10px; bottom: 10px; font-size: .62rem; letter-spacing: .1em; }
  .content { padding-top: 28px; gap: 36px; }
}
@media (max-width: 380px) {
  .wordmark { font-size: .85rem; letter-spacing: .26em; }
  .btn { padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Simple text pages: privacy, thanks, 404 */
.page { max-width: 46rem; margin: 0 auto; padding: 32px var(--gutter) 48px; display: grid; gap: 40px; }
.page header { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.page header a.back { font-size: .8rem; color: var(--stone); }
.prose { display: grid; gap: 16px; }
.prose h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.prose h2 { font-size: 1.25rem; margin-top: 16px; }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.prose p, .prose li { max-width: 65ch; }
.centered { min-height: 70vh; display: grid; place-content: center; justify-items: center; text-align: center; gap: 18px; }
.centered .lead { color: var(--stone); max-width: 38ch; }
