/* =========================================================
   GLOBAL RESET (Meyer reset)
   Keeps browser defaults consistent and predictable.
   Source: http://meyerweb.com/eric/tools/css/reset/  v2.0
   ========================================================= */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, centre,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video{
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section{
  display: block;
}
body{ line-height: 1; }
ol, ul{ list-style: none; }
blockquote, q{ quotes: none; }
blockquote::before, blockquote::after,
q::before, q::after{ content: ""; }
table{ border-collapse: collapse; border-spacing: 0; }
*{ box-sizing: border-box; }

/* =========================================================
   DESIGN TOKENS
   Centralised variables so colours, spacing and shadows
   are easy to tweak or theme.
   ========================================================= */
@import url("https://fonts.googleapis.com/css2?family=Unica+One&family=Crimson+Text:wght@400;600;700&display=swap");

:root {
  --c1: #F85A3E;
  --c2: #FF7733;
  --c3: #E15634;
  --c4: #E63B2E;
  --c5: #E1E6E1;

  --text: #f5f5f5;
  --muted: #c7c7c7;
  --bg: #0f0f10;

  --radius: 22px;
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.55);
}

/* Global link reset */
a,
a:visited {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--c2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Crimson Text", serif;
  padding: 32px 16px 60px;
  line-height: 1.6;
}

/* ===========================
   Shared menu / header styles
   =========================== */

header {
  max-width: 1000px;
  margin: 0 auto 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

#logo {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

#logo span {
  font-family: "Unica One", sans-serif;
  text-transform: lowercase;
  letter-spacing: 0.08em;
  font-size: 1.3rem;
  padding: 6px 10px 4px;
  border-radius: 999px;
  border: 1px solid rgba(225, 230, 225, 0.28);
  background: linear-gradient(135deg, rgba(248, 90, 62, 0.12), rgba(5, 5, 6, 0.9));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

#logo small {
  font-size: 0.85rem;
  color: var(--muted);
  opacity: 0.9;
}

nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: "Unica One", sans-serif;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

nav a {
  position: relative;
  padding-bottom: 3px;
  color: var(--muted);
  transition: color 0.2s ease-out;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--c1), var(--c2));
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.18s ease-out;
}

nav a:hover {
  color: var(--c2);
}

nav a:hover::after {
  transform: scaleX(1);
}

/* Optional theme toggle, if present in nav */
#theme-toggle {
  margin-left: 8px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: "Unica One", sans-serif;
  font-size: 0.9rem;
  color: var(--muted);
  transition: background 0.2s ease-out, border-color 0.2s ease-out, transform 0.15s ease-out;
}

#theme-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--c2);
  transform: translateY(-1px);
}

/* ===========================
   Page-specific layout
   =========================== */

main {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  gap: 40px;
}

#swatches {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 160px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

#swatches div {
  display: flex;
  justify-content: center;
  align-items: center;
}

#swatches input {
  width: 100%;
  height: 100%;
  border: none;
  padding: 0;
  cursor: pointer;
  background: transparent;
}

#colour1 { background: var(--c1); }
#colour2 { background: var(--c2); }
#colour3 { background: var(--c3); }
#colour4 { background: var(--c4); }
#colour5 { background: var(--c5); }

#preview {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 32px 26px;
  background: rgba(10, 10, 10, 0.85);
  box-shadow: var(--shadow);
}

#preview h2 {
  font-family: "Unica One", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--c2);
}

#preview p {
  color: var(--muted);
  margin-bottom: 24px;
}

#preview-button {
  border: none;
  padding: 12px 20px;
  border-radius: 999px;
  font-family: "Unica One", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  background: linear-gradient(135deg, var(--c4), var(--c2));
  color: #050505;
  cursor: pointer;
  margin-bottom: 28px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55);
  transition: transform 0.18s ease-out;
}

#preview-button:hover {
  transform: translateY(-2px);
}

article {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 18, 18, 0.9);
  padding: 20px 18px;
  border-radius: var(--radius);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

article h3 {
  font-family: "Crimson Text", serif;
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: var(--c1);
}

article p {
  color: var(--muted);
  font-size: 0.95rem;
}

footer {
  margin-top: 50px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}