/* ===== Site styles, based on your layout draft (Orbitron, yellow + charcoal) =====
   Change the values in :root and the whole site updates. */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

:root {
  --page:   #ffc310;   /* yellow page background */
  --shade:  #cc9c0d;   /* darker yellow used for the offset shadows */
  --dark:   #2c2c2c;   /* charcoal cards */
  --bar:    #313131;   /* header and footer bars */
  --text:   #ffffff;   /* text on dark */
  --muted:  #d9d9d9;   /* quieter text and menu dots */
  --accent: #ffc310;   /* links and highlights on dark */
  --bg:     #2c2c2c;   /* used by form fields and gallery widgets */
  --line:   #4a4a4a;   /* dividers and image placeholders */
  --footer-h: 3.5rem;   /* height of the fixed bottom bar */
  --font:   "Orbitron", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { overscroll-behavior-y: none; }

body {
  margin: 0;
  background: var(--page);
  color: var(--dark);
  font-family: var(--font);
  font-size: 0.95rem;
  line-height: 1.8;
  display: flex;            /* lets the footer sit at the bottom on short pages */
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: var(--footer-h);   /* room for the fixed footer */
}

/* ----- Header and menu ----- */
header {
  background: var(--bar);
  border-radius: 0 0 clamp(1.5rem, 5vw, 4rem) clamp(1.5rem, 5vw, 4rem);
  padding: 1.1rem 1.5rem 1.4rem;
  position: sticky;         /* stays at the top while scrolling */
  top: 0;
  z-index: 10;
}
nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 0.25rem 1.5rem;
}
nav li + li::before {
  content: ""; display: inline-block; width: 0.8rem; height: 0.8rem;
  margin-right: 1.5rem; border-radius: 50%; background: var(--muted); vertical-align: middle;
}
nav a { color: var(--text); text-decoration: none; font-size: 1.05rem; }
nav a:hover { color: var(--accent); }
nav a[aria-current="page"] { color: var(--accent); }

/* ----- Page content ----- */
main { width: 100%; flex: 1 0 auto; max-width: 1100px; margin: 2rem auto; padding: 0 1.5rem; }

/* Pages with a single dark card (Portfolio, Gallery, Store, Commissions, Contact) */
main.card {
  background: var(--dark); color: var(--text);
  border-radius: 1.5rem; padding: 2rem;
  width: calc(100% - 3rem); max-width: 1000px; margin: 2rem auto 3rem;
  box-shadow: 1.25rem 1.25rem 0 var(--shade);
}
main.card h1, main.card h2 { color: var(--accent); }
main.card h1 { margin-top: 0; }
main.card a { color: var(--accent); }

h1 { font-size: 1.9rem; line-height: 1.3; }
h2 { font-size: 1.25rem; }

img { max-width: 100%; height: auto; border: 2px solid #fff; border-radius: 0.75rem; }   /* thin white rounded border on every image */

/* ----- About page layout ----- */
.about { display: grid; grid-template-columns: 1fr 440px; grid-template-rows: auto 1fr; gap: 0 4rem; align-items: start;
  flex: 0 1 auto; margin: auto; padding: 2rem 1.5rem; max-width: 1300px; }   /* auto margins center it between the bars */
.about h1 { grid-column: 1; margin: 0 0 1rem; color: var(--dark); font-size: 2.4rem; }
.about-text { grid-column: 1; background: var(--dark); color: var(--text);
  border-radius: 1.25rem; padding: 2rem; min-height: 24rem; align-self: stretch; font-size: 1.5em; }
.about-text a { color: var(--accent); }
.about-side { grid-column: 2; grid-row: 1 / span 2; padding-right: 1.5rem; }

.pill, .frame { background: var(--dark); border-radius: 1.25rem; box-shadow: 1.25rem 1.25rem 0 var(--shade); }
.pill { color: var(--text); padding: 0.6rem 1.5rem; margin: 0 0 2rem; font-size: 1.4rem; text-align: center; }
.frame { padding: 1.25rem; }
.frame-inner { background: transparent; border-radius: 0.4rem; aspect-ratio: 1 / 1.3; display: flex; }
.frame-inner img, .frame-inner svg { width: 100%; height: 100%; object-fit: cover; }

/* ----- Floating illustrations: left and right of the page (wide screens only) ----- */
.side { display: none; position: fixed; top: 0; bottom: 0; width: calc((100vw - 1300px) / 2);
  align-items: center; justify-content: center; pointer-events: none; z-index: 1; }
.side.left { left: 0; }
.side.right { right: 0; }
@media (min-width: 1700px) { .side { display: flex; } }

.float { width: 80%; max-width: 380px; height: auto; border: 0; border-radius: 0;   /* no border on cut-out PNGs */
  animation: float 4.5s ease-in-out infinite; }
.float.two { animation-duration: 5.5s; animation-delay: -2s; }
.float-ph { aspect-ratio: 3 / 4; border: 2px dashed var(--dark); border-radius: 0.75rem;
  display: flex; align-items: center; justify-content: center; text-align: center; color: var(--dark); font-size: 0.9rem; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50%      { transform: translateY(-18px) rotate(1.5deg); }
}
@media (prefers-reduced-motion: reduce) { .float { animation: none; } }

/* ----- Gallery: stop the grey square showing behind rounded, bordered thumbnails ----- */
.grid .thumb { background: transparent; border-radius: 0.75rem; }
.grid .thumb .ph { border-radius: 0.75rem; }

/* ----- Footer ----- */
footer {
  background: var(--bar); color: var(--muted);
  border-radius: clamp(1.5rem, 5vw, 4rem) clamp(1.5rem, 5vw, 4rem) 0 0;
  position: fixed;          /* pinned to the bottom of the screen */
  left: 0; right: 0; bottom: 0;
  z-index: 10;
  height: var(--footer-h); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: 0 1.5rem; text-align: center; font-size: 0.8rem; line-height: 1.5;
}
footer p { margin: 0; }

:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
main.card :focus-visible, header :focus-visible, footer :focus-visible { outline-color: var(--accent); }

/* ----- Phones and small screens ----- */
@media (max-width: 800px) {
  .about { grid-template-columns: 1fr; grid-template-rows: none; }
  .about-side { grid-column: 1; grid-row: auto; padding-right: 1rem; margin-top: 2rem; }
  .pill, .frame, main.card { box-shadow: 0.6rem 0.6rem 0 var(--shade); }
  main.card { padding: 1rem; width: calc(100% - 2rem); }
  body { font-size: 0.85rem; }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.1rem; }
  .pill { font-size: 1rem; }
  .about-text { padding: 1.1rem; font-size: 1.15em; }   /* keep phone text at the previous size */
  :root { --footer-h: 4rem; }
  footer { font-size: 0.75rem; }
  .about-side { margin-bottom: 1rem; }
  nav li + li::before { display: none; }
  nav a { font-size: 0.9rem; }
  nav ul { gap: 0.1rem 1rem; }
  header { padding: 0.7rem 1rem 1rem; }
}
