/* breeg // project pages.
 *
 * One stylesheet for every project page. A page sets only its palette tokens
 * in :root, so each can wear its project's colours while breeg's wordmark,
 * typeface and layout stay identical across all of them.
 *
 * Each page commits to a single look (its project's), so there is no dark-mode
 * swap — every colour is painted explicitly from the page's tokens instead. */

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a { color: inherit; }

::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* breeg's wordmark, recoloured to sit on the project's ground. */
.logo {
  position: absolute;
  top: 28px;
  left: 40px;
  margin: 0;
  font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  font-size: 5.5px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--ink);
  white-space: pre;
  text-decoration: none;
}

main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 190px 40px 40px;
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.back {
  display: inline-block;
  margin-bottom: 36px;
  color: var(--dim);
  text-decoration: none;
  font-size: 15px;
}
.back:hover { color: var(--ink); }

/* ---- hero ---- */
.eyebrow {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

h1 {
  margin: 0;
  font-size: clamp(44px, 7.4vw, 84px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.lede {
  margin: 24px 0 0;
  max-width: 58ch;
  font-size: 19px;
  line-height: 1.55;
  color: var(--dim);
}

.visit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
}
.visit:hover { border-color: var(--ink); }

.shot {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px var(--shadow);
  background: var(--card);
}
.shot img {
  display: block;
  width: 100%;
  /* height:auto matters: without it the img's height="800" attribute wins over
     aspect-ratio, the box grows taller than 16:10, and object-fit crops the
     sides of the screenshot away. */
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}

/* ---- sections ---- */
.label {
  margin: 0 0 22px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.helps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.help {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 24px 26px;
}
.help h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.help p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--dim);
}

.built {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.built li {
  font-size: 14px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
}

/* ---- call to action ---- */
.cta {
  border-top: 1px solid var(--line);
  padding-top: 56px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.cta h2 {
  margin: 0;
  font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.cta p {
  margin: 12px 0 0;
  max-width: 44ch;
  color: var(--dim);
  font-size: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: 0.55; cursor: default; transform: none; }

/* ---- prev / next ---- */
.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 40px 64px;
}
.pager a {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  background: var(--card);
}
.pager a:hover { border-color: var(--dim); }
.pager span { display: block; font-size: 12px; color: var(--dim); margin-bottom: 4px; }
.pager strong { font-size: 17px; font-weight: 600; }
.pager .next { text-align: right; grid-column: 2; }

/* ---- contact dialog ---- */
dialog.contact {
  width: min(520px, calc(100% - 32px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--sheet);
  color: var(--ink);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.45);
}
dialog.contact::backdrop { background: rgba(8, 8, 12, 0.55); }

.sheet { padding: 28px 28px 30px; }
.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.sheet-head h2 { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.sheet-head p { margin: 6px 0 0; font-size: 14px; color: var(--dim); }
.close {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.contact form { display: flex; flex-direction: column; gap: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 500; }
.field .opt { color: var(--dim); font-weight: 400; }
.field input,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--dim); opacity: 0.7; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact .btn { justify-content: center; margin-top: 6px; }
.form-error { display: none; margin: 0; font-size: 14px; color: var(--error); }
.done { display: none; text-align: center; padding: 18px 0 6px; }
.done h3 { margin: 0 0 6px; font-size: 22px; font-weight: 600; }
.done p { margin: 0; color: var(--dim); }

@media (max-width: 720px) {
  .helps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .logo { top: 24px; left: 24px; }
  main { padding: 130px 24px 32px; gap: 56px; }
  .pager { padding: 0 24px 48px; grid-template-columns: 1fr; }
  .pager .next { grid-column: 1; }
  .row2 { grid-template-columns: 1fr; }
  .lede { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
