/* Coffin Productions – shared styles.
   Most layout lives inline on each page, so you can edit a section
   without hunting through this file. */

body { margin: 0; background: #17171A; }
a { color: #EDEAE4; }
a:hover { color: #FFFFFF; }
input, select, textarea, button { font: inherit; }
img { max-width: 100%; }

/* Keyboard focus: a clear ring on links, buttons and fields */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #EDEAE4;
  outline-offset: 3px;
}

/* Buttons and links that look like buttons */
a[style*="min-height: 48px"]:hover, button:hover { filter: brightness(1.08); }

/* Work page: highlight the project row a home-page card links to (e.g. work/#the-way) */
tr:target { background: #232328; }
tr:target > td:first-child { box-shadow: inset 3px 0 0 #D23C3C; padding-left: 12px !important; }

/* ===== Launch countdown (assets/countdown.js) – safe to delete after launch ===== */
html.cd-on, html.cd-on body { overflow: hidden; }
html.cd-on body > *:not(#cd) { visibility: hidden; }
#cd {
  position: fixed; inset: 0; z-index: 1000; overflow-y: auto;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 22px 32px 24px; box-sizing: border-box;
  background: #17171A center / cover no-repeat;
  font-family: Barlow, system-ui, sans-serif; color: #EDEAE4; font-size: 18px; line-height: 1.6;
}
#cd a { color: #EDEAE4; }
.cd-top, .cd-main, .cd-foot { width: 100%; max-width: 1240px; margin: 0 auto; }
.cd-logo { display: inline-flex; flex-direction: column; font-size: 40px; padding: 4px 0; }
.cd-word { font-family: 'Big Shoulders Display', sans-serif; font-weight: 800; font-variant-ligatures: none; line-height: 0.9; letter-spacing: 0.005em; white-space: nowrap; }
.cd-i { display: inline-block; margin: 0 0.045em; vertical-align: baseline; }
.cd-dot { display: block; width: 0.15em; height: 0.15em; margin: 0 auto 0.05em; border-radius: 50%; background: #D23C3C; }
.cd-stem { display: block; width: 0.125em; height: calc(1ex - 0.2em); margin: 0 auto; background: currentColor; }
.cd-sub { display: flex; justify-content: space-between; margin-top: 0.34em; padding: 0 0.17em 0 0.098em; font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 0.235em; line-height: 1; color: #C9C4BC; }
.cd-main { padding: 48px 0; }
.cd-kicker, .cd-clock small, .cd-foot { font-family: 'Barlow Condensed', sans-serif; font-weight: 500; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; color: #C9C4BC; }
.cd-kicker { margin: 0 0 10px; }
.cd-title { margin: 0; font-weight: 600; font-size: clamp(40px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -0.015em; text-shadow: 0 2px 24px rgba(0,0,0,0.5); }
.cd-clock { display: flex; flex-wrap: wrap; gap: 16px 40px; margin: 32px 0 36px; }
.cd-clock > div { display: flex; flex-direction: column; min-width: 92px; padding-top: 14px; border-top: 2px solid #D23C3C; }
.cd-clock span { font-family: 'Big Shoulders Display', sans-serif; font-weight: 800; font-size: clamp(56px, 9vw, 120px); line-height: 0.95; font-variant-numeric: tabular-nums; text-shadow: 0 2px 24px rgba(0,0,0,0.5); }
.cd-clock small { margin-top: 8px; }
.cd-lede { margin: 0; max-width: 560px; font-size: 20px; text-shadow: 0 1px 12px rgba(0,0,0,0.6); }
.cd-contact { margin: 14px 0 0; color: #D6D2CB; }
.cd-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; border-top: 1px solid rgba(237,234,228,0.2); }
.cd-foot span:last-child { display: flex; gap: 24px; }
.cd-foot a { color: #C9C4BC !important; }
#cd-badge {
  position: fixed; left: 16px; bottom: 16px; z-index: 1000; max-width: calc(100% - 32px); box-sizing: border-box;
  padding: 8px 14px; border-radius: 2px; background: #D23C3C; color: #fff;
  font-family: Barlow, system-ui, sans-serif; font-size: 14px; font-weight: 500; line-height: 1.4;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
#cd-badge a { color: #fff; }
@media (max-width: 640px) {
  #cd { padding: 18px 20px 20px; }
  .cd-clock { gap: 16px 20px; }
  .cd-clock > div { min-width: 64px; }
}

/* Phones */
@media (max-width: 640px) {
  section, header > div, header[style*="padding: 22px 32px"], footer > div { padding-left: 20px !important; padding-right: 20px !important; }
  section > div[style*="padding: 44px 48px"] { padding: 28px 24px !important; }
  nav { gap: 18px !important; }
  table { font-size: 16px !important; }
}

/* Countdown: reviewer password */
.cd-review { margin-top: 28px; }
.cd-review[hidden] { display: none; }
.cd-logo { cursor: default; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.cd-review summary { cursor: pointer; font-family: 'Barlow Condensed', sans-serif; font-weight: 500; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; color: #C9C4BC; list-style: none; }
.cd-review summary::-webkit-details-marker { display: none; }
.cd-review summary::after { content: " +"; }
.cd-review[open] summary::after { content: " –"; }
.cd-pass { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.cd-pass label { position: absolute; left: -10000px; }
.cd-pass input { width: 160px; min-height: 44px; padding: 8px 14px; box-sizing: border-box; background: rgba(18,18,20,0.85); border: 1px solid #55555D; border-radius: 8px; color: #EDEAE4; font: inherit; font-size: 17px; }
.cd-pass button { min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: #EDEAE4; color: #17171A; font: inherit; font-weight: 600; cursor: pointer; }
.cd-pass-err { flex-basis: 100%; margin: 0; color: #F2A1A1; font-size: 15px; }
.cd-links { color: #D6D2CB; font-size: 17px; }
.cd-links a { font-weight: 600; }

/* ===== Book a date page (contact/index.html) ===== */
.bk { max-width: 1240px; margin: 0 auto; padding: 56px 32px 80px; box-sizing: content-box; }
.bk-intro { position: relative; overflow: hidden; border-radius: 12px; min-height: 340px; display: flex; align-items: flex-end; padding: 48px; margin-bottom: 48px; box-sizing: border-box; }
.bk-intro::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(23,23,26,0.92) 0%, rgba(23,23,26,0.7) 45%, rgba(23,23,26,0.25) 100%), linear-gradient(0deg, rgba(23,23,26,0.6) 0%, rgba(23,23,26,0) 60%); }
.bk-intro > div { position: relative; z-index: 2; max-width: 640px; }
.bk-intro h1, .bk-lede { text-shadow: 0 2px 18px rgba(0,0,0,0.5); }
.bk-intro h1 { margin: 0; font-weight: 600; font-size: clamp(44px, 5vw, 68px); line-height: 1.02; letter-spacing: -0.015em; color: #EDEAE4; }
.bk-lede { margin: 20px 0 0; max-width: 620px; font-size: 20px; color: #D6D2CB; }
.bk-mail { margin: 16px 0 0; color: #D6D2CB; }
.bk-mail a { font-weight: 600; }
.bk-intro img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; display: block; z-index: 0; }

.bk-form { display: flex; flex-direction: column; gap: 28px; }
.bk-row { display: grid; gap: 20px 40px; }
.bk-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bk-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bk-field { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bk-label { font-size: 16px; font-weight: 500; color: #D6D2CB; padding: 0; }
.bk-label em { font-style: normal; font-weight: 400; color: #8E8A83; margin-left: 4px; }
.bk-field input, .bk-field select, .bk-field textarea {
  width: 100%; box-sizing: border-box; min-height: 56px; padding: 14px 18px;
  background: #121214; border: 1px solid #3A3A40; border-radius: 10px;
  color: #EDEAE4; font: inherit; font-size: 17px;
}
.bk-field textarea { min-height: 170px; resize: vertical; line-height: 1.5; }
.bk-field ::placeholder { color: #7D7972; }
.bk-field select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M0 0h12L6 7z' fill='%23EDEAE4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center; }
.bk-field input:hover, .bk-field select:hover, .bk-field textarea:hover { border-color: #55555D; }
.bk-field input:focus, .bk-field select:focus, .bk-field textarea:focus { outline: none; border-color: #EDEAE4; }

.bk-chips { border: 0; margin: 0; padding: 0; }
.bk-chips legend { margin-bottom: 14px; }
.bk-chips > div { display: flex; flex-wrap: wrap; gap: 12px; }
.bk-chip { position: relative; cursor: pointer; }
.bk-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bk-chip span { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 24px; box-sizing: border-box;
  border: 1px solid #3A3A40; border-radius: 999px; font-size: 17px; color: #EDEAE4; transition: border-color .15s, background .15s; }
.bk-chip span::before { content: ""; width: 9px; height: 9px; border: 1.5px solid currentColor; transform: rotate(45deg); }
.bk-chip:hover span { border-color: #6A6A72; }
.bk-chip input:checked + span, .bk-chip:hover input:checked + span { background: #EDEAE4; color: #17171A; border-color: #EDEAE4; }
.bk-chip input:checked + span::before { background: #D23C3C; border-color: #D23C3C; }
.bk-chip input:focus-visible + span { outline: 2px solid #EDEAE4; outline-offset: 3px; }

.bk-chip-err { margin: 10px 0 0; color: #F2A1A1; font-size: 15px; }
.bk-chip-err[hidden] { display: none; }
.bk-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.bk-error { margin: 0; padding: 12px 16px; background: #3A1F1F; border: 1px solid #D23C3C; border-radius: 8px; color: #EDEAE4; }
.bk-send { align-self: flex-start; min-height: 56px; padding: 0 32px; border: 0; border-radius: 999px; background: #EDEAE4; color: #17171A; font: inherit; font-weight: 600; font-size: 17px; cursor: pointer; }
.bk-send:hover { background: #FFFFFF; }

@media (max-width: 820px) {
  .bk-3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .bk { padding: 40px 20px 56px; }
  .bk-2 { grid-template-columns: 1fr; }
  .bk-intro { padding: 28px 24px; min-height: 300px; }
}
