/* Etchings & Keepsakes. One colour: ink on ice. Square corners, hairlines, no accent. */

@font-face {
  font-family: "Cormorant Garamond";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("/assets/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("/assets/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-weight: 500;
  font-style: italic;
  font-display: swap;
  src: url("/assets/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2");
}

:root {
  --ice: #e8edf1;
  --paper: #ffffff;
  --frost: #cfd8e0;
  --ink: #13243a;
  --ink-soft: #4a5a70;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --gap: 26px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ice);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.45;
  font-variant-numeric: lining-nums;
}

.page {
  max-width: 34rem;
  margin: 0;
  padding: 28px 20px 64px;
}
@media (min-width: 720px) {
  /* the side padding sits outside the text column, so the column keeps its width */
  .page { max-width: calc(34rem + 16vw); padding: 56px 8vw 96px; }
}
.page.wide { max-width: 72rem; }

/* Home on a wide screen: what we make on the left, the two things to do on the right. */
.doors h2:first-child { margin-top: 0; }
@media (min-width: 960px) {
  .page.home { max-width: calc(68rem + 16vw); }
  .page.home .masthead { margin-bottom: 72px; }
  .page.home .masthead img { width: 300px; }
  .split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 72px; align-items: start; }
  .intro h1 { font-size: 52px; line-height: 1.1; }
  .intro p { font-size: 23px; max-width: 30rem; }
  .intro .rule { display: none; }
  .doors { border-left: 1px solid var(--ink); padding-left: 48px; }
}

/* ---------- header ---------- */

.masthead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
}
.masthead img { display: block; width: min(250px, 52vw); height: auto; }
.masthead.small img { width: 190px; }

.lang {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  background: none;
  border: 1px solid var(--ink);
  padding: 8px 10px 7px 12px;
  cursor: pointer;
  white-space: nowrap;
  flex: none;
}

/* ---------- type ---------- */

h1 {
  font-size: 36px;
  line-height: 1.15;
  font-weight: 500;
  margin: 0 0 var(--gap);
  text-wrap: balance;
}
h2 {
  font-size: 26px;
  line-height: 1.2;
  font-weight: 500;
  margin: 40px 0 12px;
}
p { margin: 0 0 16px; }
a { color: var(--ink); text-underline-offset: 3px; }

.label {
  display: block;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.soft { color: var(--ink-soft); }
.small { font-size: 17px; line-height: 1.4; }
.code {
  font-weight: 600;
  letter-spacing: 0.14em;
  white-space: nowrap;
  font-variant-numeric: lining-nums;
}
.rule {
  width: 56px;
  height: 2px;
  background: var(--ink);
  border: 0;
  margin: var(--gap) 0;
}
hr.hair { border: 0; border-top: 1px solid var(--frost); margin: 32px 0; }

/* ---------- forms ---------- */

.field { margin-bottom: 22px; }
.field .hint { display: block; margin-top: 6px; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="date"],
input[type="search"],
select,
textarea {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 20px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 11px 12px;
  -webkit-appearance: none;
  appearance: none;
  font-variant-numeric: lining-nums;
}
select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 12px) 55%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}
textarea { min-height: 96px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible,
button:focus-visible, a:focus-visible, .filepick:focus-within {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.check {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 18px;
  cursor: pointer;
}
.check input {
  width: 26px;
  height: 26px;
  margin: 2px 0 0;
  -webkit-appearance: none;
  appearance: none;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 0;
  cursor: pointer;
}
.check input:checked {
  background: var(--ink);
  box-shadow: inset 0 0 0 5px var(--paper);
}

.button {
  display: inline-block;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  color: var(--ice);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 17px 24px 15px 28px;
  cursor: pointer;
}
.button.full { display: block; width: 100%; }
.button.quiet { color: var(--ink); background: transparent; }
.button.slim { padding: 9px 12px 8px 15px; font-size: 13px; }
.button[disabled] { opacity: 0.45; cursor: default; }

.notice {
  border-left: 2px solid var(--ink);
  padding: 2px 0 2px 16px;
  margin: 0 0 var(--gap);
}
.error {
  border: 1px solid var(--ink);
  background: var(--paper);
  padding: 14px 16px;
  margin: 0 0 var(--gap);
}
.error::before { content: "! "; font-weight: 600; }

[hidden] { display: none !important; }

/* ---------- photo picker ---------- */

.filepick {
  display: block;
  position: relative;
  border: 1px dashed var(--ink);
  background: var(--paper);
  padding: 22px 16px;
  text-align: left;
  cursor: pointer;
}
.filepick input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.filepick strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.picked { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.picked li {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--frost);
  padding: 8px;
}
.picked img, .picked .noimg {
  width: 72px;
  height: 72px;
  object-fit: cover;
  background: var(--frost);
  display: block;
}
.picked .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picked label { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.picked input[type="radio"] {
  width: 20px; height: 20px; margin: 0;
  -webkit-appearance: none; appearance: none;
  border: 1px solid var(--ink); border-radius: 50%; background: var(--paper);
}
.picked input[type="radio"]:checked { background: var(--ink); box-shadow: inset 0 0 0 4px var(--paper); }

/* ---------- steps ---------- */

.steps { list-style: none; margin: 0 0 var(--gap); padding: 0; counter-reset: s; }
.steps li {
  counter-increment: s;
  display: grid;
  grid-template-columns: 34px 1fr;
  padding: 10px 0;
  border-top: 1px solid var(--frost);
}
.steps li:last-child { border-bottom: 1px solid var(--frost); }
.steps li::before { content: counter(s); font-weight: 600; }
.steps li.now { font-weight: 600; }
.steps li.done { color: var(--ink-soft); }
.steps li.done::before { content: "✓"; }

footer.foot {
  margin-top: 64px;
  padding-top: 18px;
  border-top: 1px solid var(--frost);
  font-size: 17px;
  color: var(--ink-soft);
}
footer.foot a { color: var(--ink-soft); }

/* ---------- hut tablet ---------- */

body.hut .page { max-width: 44rem; padding-top: 8vh; }
body.hut h1 { font-size: 48px; }
body.hut input[type="email"] { font-size: 28px; padding: 16px; }
body.hut .button { font-size: 18px; padding: 22px 28px 20px 32px; }
