/* Joshua Gisi — wedding DJ & lighting.
 *
 * The palette is taken off the photographs rather than picked: barn timber is
 * a warm near-black, the string canopy reads as amber, and the washes on the
 * back wall are violet and cyan. The page is dark because every photograph on
 * it was taken in a dark room, and a white page around them makes them look
 * like mistakes.
 */

:root {
  --ink: #0e0b09;          /* barn timber at night */
  --ink-2: #171210;
  --ink-3: #221a16;
  --line: #372b24;
  --cream: #f4ece2;
  --dim: #b5a493;
  --amber: #ffb454;        /* the string lights */
  --violet: #9d7dff;       /* the washes */
  --cyan: #4dd2ff;

  --shell: min(1180px, 92vw);
  --radius: 4px;

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--amber); text-decoration-thickness: 1px; text-underline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(42px, 7.5vw, 86px); }
h2 { font-size: clamp(30px, 4.4vw, 48px); }
h3 { font-size: 23px; }

.wrap { width: var(--shell); margin: 0 auto; }
.wrap.narrow { width: min(720px, 92vw); }

.skip {
  position: absolute; left: -9999px;
  background: var(--amber); color: var(--ink); padding: 10px 16px; z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

/* -- header ---------------------------------------------------------------- */

.top {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 14px max(4vw, 20px);
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.mark {
  font-family: var(--display);
  font-size: 19px;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.top nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.top nav a {
  color: var(--dim); text-decoration: none; font-size: 15px;
}
.top nav a:hover { color: var(--cream); }
.top nav a.cta {
  color: var(--ink); background: var(--amber);
  padding: 8px 16px; border-radius: var(--radius); font-weight: 600;
}
.top nav a.cta:hover { background: #ffc576; }

@media (max-width: 720px) {
  .top nav a:not(.cta) { display: none; }
}

/* -- hero ------------------------------------------------------------------ */

.hero { position: relative; min-height: min(86vh, 760px); display: grid; }

.hero picture, .hero img {
  grid-area: 1 / 1;
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero::after {
  content: ""; grid-area: 1 / 1;
  background:
    linear-gradient(to top, var(--ink) 4%, color-mix(in srgb, var(--ink) 55%, transparent) 46%, transparent 78%),
    linear-gradient(to right, color-mix(in srgb, var(--ink) 80%, transparent), transparent 62%);
}

.hero-copy {
  grid-area: 1 / 1;
  align-self: end;
  width: var(--shell);
  margin: 0 auto;
  padding: 0 0 clamp(40px, 7vw, 92px);
  position: relative; z-index: 2;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--amber);
}

.lede {
  max-width: 54ch; font-size: clamp(17px, 1.6vw, 20px); color: #e6dbcd;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* -- buttons --------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 13px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--cream);
  background: color-mix(in srgb, var(--ink-3) 70%, transparent);
  text-decoration: none;
  font-size: 15px; font-weight: 500;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .08s;
}
.btn:hover { border-color: var(--amber); background: var(--ink-3); }
.btn:active { transform: translateY(1px); }

.btn.primary {
  background: var(--amber); border-color: var(--amber); color: var(--ink);
  font-weight: 600;
}
.btn.primary:hover { background: #ffc576; border-color: #ffc576; }

/* -- bands ----------------------------------------------------------------- */

.band { padding: clamp(60px, 9vw, 116px) 0; }
.band.alt { background: var(--ink-2); }

.sub { color: var(--dim); max-width: 62ch; margin-top: -0.4em; }

.two {
  display: grid; gap: clamp(32px, 5vw, 68px);
  grid-template-columns: 1fr 1fr; align-items: center;
}
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }

.two figure { margin: 0; }
.two img { border-radius: var(--radius); }
figcaption {
  margin-top: 12px; font-size: 14px; color: var(--dim); font-style: italic;
}

/* -- gallery --------------------------------------------------------------- */

.grid {
  display: grid; gap: 12px; margin-top: 34px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.grid button {
  padding: 0; border: 0; background: none; cursor: zoom-in;
  border-radius: var(--radius); overflow: hidden; line-height: 0;
}
.grid img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  transition: transform .4s ease, filter .3s ease;
  filter: saturate(.92);
}
.grid button:hover img { transform: scale(1.04); filter: saturate(1.06); }
.grid button:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

dialog.lightbox {
  border: 0; padding: 0; background: transparent;
  max-width: 94vw; max-height: 94vh;
}
dialog.lightbox::backdrop { background: rgba(8, 6, 5, .92); }
dialog.lightbox img { max-height: 90vh; width: auto; border-radius: var(--radius); }
dialog.lightbox .close {
  position: fixed; top: 18px; right: 22px;
  background: none; border: 0; color: var(--cream);
  font-size: 34px; line-height: 1; cursor: pointer;
}

/* -- pricing --------------------------------------------------------------- */

.tiers {
  display: grid; gap: 18px; margin-top: 38px;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  align-items: start;
}

.tier {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px 26px;
  background: var(--ink-2);
  display: flex; flex-direction: column; height: 100%;
}
.band.alt .tier { background: var(--ink); }

.tier.featured {
  border-color: color-mix(in srgb, var(--amber) 55%, var(--line));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--amber) 22%, transparent);
  position: relative;
}

.flag {
  position: absolute; top: -11px; left: 26px;
  margin: 0; padding: 3px 11px;
  background: var(--amber); color: var(--ink);
  font-size: 11.5px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  border-radius: 99px;
}

.price {
  font-family: var(--display); font-size: 46px; line-height: 1;
  margin: 6px 0 4px;
}
.price span { font-size: 24px; vertical-align: 14px; color: var(--dim); margin-right: 2px; }

.tier-for { color: var(--dim); font-size: 15px; margin: 0 0 20px; }

.tier ul { list-style: none; padding: 0; margin: 0 0 26px; }
.tier li {
  position: relative; padding-left: 24px; margin-bottom: 9px; font-size: 15.5px;
}
.tier li::before {
  content: "—"; position: absolute; left: 0; color: var(--amber);
}
.tier .btn { margin-top: auto; text-align: center; }

.fineprint { color: var(--dim); font-size: 14px; margin-top: 26px; max-width: 70ch; }

/* -- calendar -------------------------------------------------------------- */

.legend { display: flex; gap: 22px; flex-wrap: wrap; margin: 26px 0 8px; font-size: 14px; color: var(--dim); }
.legend span { display: flex; align-items: center; gap: 8px; }
.sw { width: 13px; height: 13px; border-radius: 3px; display: inline-block; }
.sw.open { background: var(--amber); }
.sw.taken { background: var(--ink-3); border: 1px solid var(--line); }
.sw.past { background: transparent; border: 1px dashed var(--line); }

.calendar {
  display: grid; gap: 26px; margin-top: 22px;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
}

.month h3 {
  font-size: 17px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--dim); font-family: var(--body); font-weight: 600;
  margin-bottom: 12px;
}

.dow, .days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.dow span {
  text-align: center; font-size: 11px; color: var(--dim);
  padding-bottom: 6px; letter-spacing: .06em;
}

.day {
  aspect-ratio: 1; display: grid; place-items: center;
  font-size: 13.5px; border-radius: 3px;
  color: var(--dim);
  border: 1px solid transparent;
}
.day.blank { visibility: hidden; }
.day.weekday { opacity: .34; }
/* Weekends are the product; weekdays are noise on a wedding calendar. */
.day.weekend { border-color: var(--line); color: var(--cream); }
.day.weekend.open {
  background: color-mix(in srgb, var(--amber) 15%, transparent);
  border-color: color-mix(in srgb, var(--amber) 48%, transparent);
  color: var(--amber); font-weight: 600;
}
.day.taken { background: var(--ink-3); color: #6f5c4e; text-decoration: line-through; }
.day.past { opacity: .2; border-style: dashed; }

.muted { color: var(--dim); }

/* -- form ------------------------------------------------------------------ */

.enquiry { margin-top: 30px; display: grid; gap: 18px; }
.enquiry .row { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
@media (max-width: 620px) { .enquiry .row { grid-template-columns: 1fr; } }

.enquiry label { display: grid; gap: 7px; font-size: 14px; color: var(--dim); }
.opt { color: #7d6b5d; }

.enquiry input, .enquiry textarea {
  font: inherit; font-size: 16px;
  color: var(--cream); background: var(--ink-2);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px;
  width: 100%;
}
.enquiry input:focus, .enquiry textarea:focus {
  outline: none; border-color: var(--amber);
}
.enquiry textarea { resize: vertical; }
.enquiry button { justify-self: start; }

.form-note { min-height: 1.4em; font-size: 15px; margin: 0; }
.form-note.err { color: #ff8b7a; }
.form-note.ok { color: var(--amber); }

/* -- footer ---------------------------------------------------------------- */

footer { border-top: 1px solid var(--line); padding: 34px 0; background: var(--ink-2); }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 15px; }
.foot p { margin: 0; }

/* Visually hidden, still read aloud. The calendar shows a bare number in each
   cell; a screen reader needs the date and whether it is open. */
.sr {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.served {
  margin: 18px 0 0; font-size: 14.5px; color: var(--dim);
  max-width: 46ch; letter-spacing: .01em;
}

/* -- admin ----------------------------------------------------------------- */

.centre {
  min-height: 100vh; display: grid; place-content: center; text-align: center;
  padding: 24px;
}
.centre h1 { font-size: 40px; }

.bar-actions {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin: 24px 0 8px;
}

/* Editable dates are buttons, so they need to look pressable and the past
   must not: a date that has gone is not a decision left to make. */
.admin-cal .day { font: inherit; font-size: 13.5px; }
.admin-cal button.day { cursor: pointer; transition: transform .06s; }
.admin-cal button.day:hover { border-color: var(--amber); }
.admin-cal button.day:active { transform: scale(.92); }
.admin-cal button.day:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.admin-cal .day.weekday { opacity: .6; }
.admin-cal .day.past { cursor: default; }

/* Unsaved edits are marked, so "did that click register" is never a question. */
.admin-cal .day.changed {
  box-shadow: 0 0 0 2px var(--cyan);
}

.admin .top { position: static; }
.admin .top nav { display: flex; align-items: center; gap: 14px; }

/* The founding rate is an offer, not fine print, and it sits above the tiers
   where it changes how the numbers below it read. */
.founding {
  margin: 26px 0 0;
  padding: 18px 22px;
  border: 1px solid color-mix(in srgb, var(--amber) 42%, var(--line));
  border-left: 3px solid var(--amber);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--amber) 7%, transparent);
  font-size: 15.5px;
  max-width: 74ch;
}
.founding strong { color: var(--amber); }

/* -- the mark -------------------------------------------------------------- */

/* Beside the name, never instead of it. A logo nobody recognises yet is
   decoration; the name is the thing a couple is actually looking for. */
.mark { display: inline-flex; align-items: center; gap: 10px; }
.mark-img { display: block; opacity: 0.9; }
.mark:hover .mark-img { opacity: 1; }

.foot-name { display: flex; align-items: flex-start; gap: 14px; }
.foot-name img { opacity: 0.55; flex: none; margin-top: 2px; }
