/* Colours are taken from the logo. */
:root {
  --linen: #f2f8fc;
  --paper: #ffffff;
  --ink: #042b47;
  --muted: #4d6577;
  --thread: #013782;
  --berry: #c40f5f;
  --leaf: #57660f;
  --stitch: #9cc6e0;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--linen);
  color: var(--ink);
  font: 1.0625rem/1.65 var(--sans);
}

h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .5rem; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
a { color: var(--thread); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--thread); outline-offset: 2px; }

#header, main, #footer { width: min(68rem, 100% - 2.5rem); margin-inline: auto; }

#header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 2rem;
  padding: 1.25rem 0;
  border-bottom: 2px dashed var(--stitch);
}
.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font: 600 1.4rem var(--serif);
  color: var(--ink);
  text-decoration: none;
}
.brand img { width: 11rem; height: auto; }
.hero h1 img { width: min(34rem, 100%); height: auto; margin-inline: auto; }
nav { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
nav a { color: var(--ink); text-decoration: none; padding: .25rem 0; border-bottom: 2px solid transparent; }
nav a:hover { border-color: var(--stitch); }
nav a[aria-current="page"] { border-color: var(--berry); }

main { flex: 1; padding-bottom: 3rem; }
section { margin-top: 3rem; }
.intro { margin-top: 2.5rem; max-width: 40rem; }
.lead { font-size: 1.2rem; color: var(--muted); }

.hero {
  margin: 2.5rem 10px 0;
  padding: clamp(2rem, 7vw, 4.5rem) 1.5rem;
  text-align: center;
  background: var(--paper);
  border: 2px dashed var(--stitch);
  box-shadow: 0 0 0 10px var(--paper);
  border-radius: 6px;
}
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.5rem; }

.button {
  display: inline-block;
  padding: .7rem 1.4rem;
  background: var(--thread);
  color: #fff;
  border: 2px solid var(--thread);
  border-radius: 4px;
  font: 600 1rem var(--sans);
  text-decoration: none;
  cursor: pointer;
}
.button:hover { filter: brightness(1.1); }
.button.secondary { background: transparent; color: var(--thread); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.card {
  display: flex;
  flex-direction: column;
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--stitch);
  border-radius: 6px;
  overflow: hidden;
}
.card figcaption, .card-body { padding: 1rem 1.1rem 1.2rem; }
.card figcaption p, .card-body p:last-child { margin: 0; }
.card-body { display: flex; flex-direction: column; flex: 1; }
.card-body p { margin-bottom: .5rem; }
.card-body > :last-child { margin-top: auto; align-self: flex-start; }

.frame { aspect-ratio: 4 / 5; background: #e2f0f9; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame.empty { display: grid; place-items: center; padding: 1rem; color: var(--muted); }
.frame.empty span { padding: .5rem 1rem; border: 2px dashed var(--stitch); border-radius: 4px; }

.price { font: 600 1.3rem var(--serif); }
.muted { color: var(--muted); }
.badge { padding: .35rem .9rem; background: var(--leaf);color: #fff; border-radius: 99px; font-weight: 600; }
.sold .frame { filter: grayscale(.8); opacity: .75; }

.steps { padding: 0; list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.5rem; }
.steps li { counter-increment: step; border-top: 2px dashed var(--stitch); padding-top: 1rem; }
.steps li::before { content: counter(step); font: 700 1.75rem var(--serif); color: var(--berry); }

form { max-width: 38rem; display: grid; gap: 1.1rem; }
label { display: grid; gap: .35rem; font-weight: 600; }
label small { font-weight: 400; color: var(--muted); }
input, select, textarea {
  width: 100%;
  padding: .65rem .75rem;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--stitch);
  border-radius: 4px;
  font: inherit;
}
textarea { min-height: 9rem; resize: vertical; }
form .button { justify-self: start; }
#form-status { padding: .75rem 1rem; border-left: 4px solid var(--leaf); background: var(--paper); }

#footer { padding: 1.5rem 0; border-top: 2px dashed var(--stitch); color: var(--muted); font-size: .95rem; }
