/* ============================================================
 *  Sykatten — design tokens
 *  ============================================================ */
:root {
  --linen: #faf6ef;
  --ink: #2e2b28;
  --denim: #3d5a80;
  --denim-dark: #2c435f;
  --mustard: #e3a857;
  --blush: #e8b4b8;
  --sage: #8fa998;

  --sidebar-width: 248px;
  --content-max: 640px;

  --font-display: "Fredoka", "Segoe UI", sans-serif;
  --font-body: "Karla", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}

a {
  color: var(--denim-dark);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--mustard);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  display: block;
}

/* ============================================================
 *  Running-stitch motif — a recurring hand-sewn structural device
 *  ============================================================ */
.stitch-rule {
  border: none;
  height: 0;
  border-top: 2px dashed var(--denim);
  opacity: 0.45;
  margin: 2.25rem 0;
}

.stitch-frame {
  border: 2px dashed var(--denim);
  border-radius: 6px;
  padding: 0.5rem;
  background: #fff;
}

/* ============================================================
 *  Layout — fixed sidebar + content column
 *  ============================================================ */
.layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: var(--denim-dark);
  color: var(--linen);
  padding: 2rem 1.75rem;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
}

.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--linen);
}

.sidebar__logo {
  width: 220px;
  height: 300px;
  flex-shrink: 0;
}

.sidebar__name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.sidebar__tagline {
  margin: 0.6rem 0 0;
  font-size: 0.85rem;
  color: var(--blush);
  font-style: italic;
  text-align: center;
}

.sidebar__nav {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
}

.sidebar__nav li + li {
  margin-top: 0.35rem;
}

.sidebar__nav a {
  display: block;
  color: var(--linen);
  text-decoration: none;
  font-size: 1rem;
  padding: 0.55rem 0.7rem;
  border-radius: 4px;
  border-left: 3px solid transparent;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.sidebar__nav a:hover {
  background: rgba(250, 246, 239, 0.08);
}

.sidebar__nav a[aria-current="page"] {
  border-left-color: var(--mustard);
  background: rgba(250, 246, 239, 0.1);
  font-weight: 600;
}

.sidebar__foot {
  margin-top: 3rem;
  font-size: 0.78rem;
  color: rgba(250, 246, 239, 0.6);
  line-height: 1.5;
}

.sidebar__toggle {
  display: none;
}

/* ============================================================
 *  Main content
 *  ============================================================ */
.content {
  margin-left: var(--sidebar-width);
  flex: 1;
  padding: 3.5rem 2.5rem 4rem;
}

.content-inner {
  max-width: var(--content-max);
}

.content-inner--wide {
  max-width: 780px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  color: var(--denim-dark);
}

h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin: 0 0 0.85rem;
}

h2 {
  font-size: 1.4rem;
  margin: 0 0 0.75rem;
}

p {
  margin: 0 0 1.1rem;
  max-width: 62ch;
}

.lede {
  font-size: 1.1rem;
  color: var(--ink);
}

/* ============================================================
 *  Steps (home page) — a genuine sequence, numbered on purpose
 *  ============================================================ */
.steps {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.4rem;
}

.steps li {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.9rem;
  align-items: start;
}

.steps__num {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  background: var(--denim);
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps h3 {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
  color: var(--ink);
}

.steps p {
  margin: 0;
  font-size: 0.96rem;
}

/* ============================================================
 *  Buttons
 *  ============================================================ */
.button {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  color: var(--ink);
  background: var(--mustard);
  padding: 0.75rem 1.4rem;
  border-radius: 5px;
  border: 2px solid var(--denim-dark);
  box-shadow: 3px 3px 0 var(--denim-dark);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.button:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--denim-dark);
}

.button:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--denim-dark);
}

/* ============================================================
 *  Gallery grid
 *  ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.75rem;
  margin-top: 2rem;
  max-width: 62ch;
}

.gallery-card figcaption {
  margin-top: 0.6rem;
  font-size: 0.92rem;
  text-align: center;
}

.gallery-card figcaption .age {
  display: block;
  color: var(--denim-dark);
  font-size: 0.82rem;
  margin-top: 0.15rem;
}

/* ============================================================
 *  about
 *  ============================================================ */
.about-intro {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.about-intro__text {
  flex: 1 1 320px;
}

.about-intro__image {
  flex: 0 0 260px;
  width: 260px;
}

/* ============================================================
 *  contact
 *  ============================================================ */
.text-box {
  margin-top: 1rem;
  padding: 1.5rem 1.6rem;
  background: #fff;
  border: 2px dashed var(--denim);
  border-radius: 8px;
  max-width: 62ch;
}

.text-box p {
  margin-bottom: 0.9rem;
}
.text-box__cta {
  text-align: center;
}

/* ============================================================
 *  Responsive — sidebar collapses to a top bar under 760px
 *  ============================================================ */
@media (max-width: 760px) {
  .layout {
    display: block;
  }

  .sidebar {
    position: sticky;
    width: auto;
    height: auto;
    padding: 1rem 1.25rem;
    z-index: 10;
  }

  .sidebar__toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    background: transparent;
    border: 1px solid rgba(250, 246, 239, 0.4);
    color: var(--linen);
    font-family: var(--font-body);
    font-size: 0.9rem;
    padding: 0.5rem 0.8rem;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    justify-content: space-between;
  }

  .sidebar__nav {
    margin-top: 0.75rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
  }

  .sidebar__nav.is-open {
    max-height: 240px;
  }

  .sidebar__foot {
    display: none;
  }

  .content {
    margin-left: 0;
    padding: 2.25rem 1.5rem 3rem;
  }


  .sidebar__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .sidebar__brand {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 0.5rem;
  }

  .sidebar__logo {
    width: 56px;
    height: 72px;
  }

  .sidebar__tagline {
    margin: 0;
    text-align: right;
    margin-left: auto;
  }
}

/* ============================================================
 *  Gallery lightbox
 *  ============================================================ */
.gallery-card__trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(46, 43, 40, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 100;
}

.lightbox[hidden] {
  display: none;
}

.lightbox figure {
  margin: 0;
  max-width: min(80vw, 520px);
  text-align: center;
}

.lightbox__img {
  width: 100%;
  border-radius: 8px;
  background: #fff;
}

.lightbox figcaption {
  color: var(--linen);
  margin-top: 0.9rem;
  font-size: 0.95rem;
  text-align: center;
}

.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 2rem;
  line-height: 1;
  background: none;
  border: none;
  color: var(--linen);
  cursor: pointer;
}


@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .sidebar__nav,
  .button {
    transition: none;
  }
}
