/* Tammy Hendrix • Final Term Project • CS125H • SeedSoulStem
   One stylesheet for all pages; page-specific tweaks via #home and #inside
   Formatting: 2-space indent, one selector per line, blank lines between blocks */

/* -------------------- Design Tokens -------------------- */
:root {
  --ink: #2b2b2b;
  --paper: #fffdf7;

  --tan-100: #f6ead7;
  --tan-200: #ecd8be;
  --tan-300: #e7c99e;
  --tan-400: #d7b68f;

  --green-ink: #3a5d3f;
  --accent: #6a3d17;   /* warm bark */

  --rule: #c57a2a;     /* orange divider */
  --focus: #1e90ff;    /* keyboard focus ring */
}

/* -------------------- Base / Resets -------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  /* …other rules… */
  background:
    linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)),
    url("../images/homebground.jpg") center/cover fixed no-repeat;
}

/* -------------------- Utilities -------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
  border: 0;

  /* modern replacement for deprecated clip */
  clip-path: inset(50%);
}

.skip-link {
  position: absolute;
  top: 0;
  left: -9999px;

  z-index: 1000;

  padding: 8px 12px;

  color: #000;
  background: #fff;
  border: 2px solid #000;
}

.skip-link:focus {
  left: 22px;
  top: 8px;
}

/* -------------------- Page Frame -------------------- */
.rule {
  border: 0;
  border-top: 3px solid var(--rule);

  width: 100%;
  max-width: 980px;
  margin: 6px auto 14px;
}

/* -------------------- Header -------------------- */
.site-header {
  display: flex;
  align-items: center;
  gap: 14px;

  max-width: 980px;
  margin: 0 auto;
  padding: 20px 16px 8px;
}

.brand {
  display: block;
}

.site-title {
  margin: 6px 0 0;

  color: #f3a025;
  font-size: 2.1rem;
  text-shadow: 1px 1px 0 #000;
  letter-spacing: 0.4px;
}

.tagline {
  margin: 2px 0 0;

  color: #444;
  font-style: italic;
}

/* -------------------- Navigation -------------------- */
.primary-nav {
  max-width: 980px;
  margin: 0 auto 12px;
}

.nav,
.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav {
  display: flex;
  align-items: stretch;
  gap: 4px;

  background: var(--tan-200);
  border: 1px solid var(--tan-400);
}

.nav > li {
  position: relative;
}

.nav > li > a {
  display: block;

  padding: 10px 16px;

  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  background: var(--tan-100);

  transition: background 0.15s ease-in-out;
}

.nav > li > a:hover,
.nav > li > a:focus,
.nav > li > a.current {
  background: var(--tan-300);
  outline: none;
}

.nav > li > .submenu {
  position: absolute;
  top: 100%;
  left: 0;

  min-width: 220px;

  display: none;

  background: var(--tan-100);
  border: 1px solid var(--tan-400);
  z-index: 10;
}

.nav > li:hover > .submenu,
.nav > li:focus-within > .submenu {
  display: block;
}

.nav .submenu a {
  display: block;

  padding: 9px 12px;

  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--tan-200);
}

.nav .submenu li:last-child a {
  border-bottom: 0;
}

.nav a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* -------------------- Global Links (LVHFA) -------------------- */
a:link {
  color: #931420;
  text-decoration: none;
}

a:visited {
  color: #c56d1d;
  text-decoration: none;
}

a:hover,
a:focus {
  color: #0000ff;
  text-decoration: underline;
}

a:active {
  color: #0000ff;
}

/* -------------------- Main Layout -------------------- */
main {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px 24px;
}

/* Hero band */
.hero {
  padding: 16px;

  background: var(--tan-200);
  border: 1px solid var(--tan-400);
}

.hero h2 {
  margin: 0 0 6px;
}

.lede {
  margin: 0.5rem 0 0;
}

.lede::first-letter {
  float: left;

  padding: 0.2rem 0.35rem 0 0;

  color: var(--accent);
  font-size: 2.2rem;
  line-height: 1;
}

/* Content blocks */
.about-block {
  margin: 0.5rem 0 1rem;
  padding: 1rem 1.1rem;

  background: var(--tan-100);
  border: 1px dashed var(--tan-400);
  border-radius: 6px;
}

/* Note */
.note {
  margin: 10px 0;
  padding: 10px 12px;

  background: var(--tan-100);
  border-left: 4px solid var(--tan-400);
}

/* About page blocks */
.about-body {
  display: grid;
  gap: 12px;

  margin: 16px 0;
}

.about-intro {
  padding: 14px;

  background: var(--tan-100);
  border: 1px dashed var(--tan-400);
  border-radius: 6px;
}

.cta {
  padding: 14px;

  background: var(--tan-200);
  border: 1px solid var(--tan-400);
}

.contact-section {
  margin: 16px 0;
  padding: 14px;

  background: var(--paper);
  border: 1px solid var(--tan-400);
}

/* Buttons */
.btn {
  display: inline-block;

  padding: 0.5rem 0.9rem;

  color: var(--ink);
  text-decoration: none;
  background: var(--tan-300);
  border: 1px solid var(--tan-400);
  border-radius: 6px;

  transition: background 0.15s ease-in-out;
}

.btn:hover,
.btn:focus {
  background: var(--tan-200);
}

/* -------------------- Figures / Images -------------------- */
.thumb {
  margin: 1rem 0;
  text-align: center;
}

.thumb img {
  max-width: 60%;
  height: auto;

  display: inline-block;

  border: 1px solid #000;
  border-radius: 6px;
}

.thumb figcaption {
  margin-top: 0.5rem;

  color: #444;
  font-size: 0.9rem;
  font-style: italic;
}

/* -------------------- Footer -------------------- */
.site-footer {
  max-width: 980px;
  margin: 0 auto;
  padding: 10px 16px 20px;

  text-align: right;
}

.footnote a {
  text-decoration: none;
}

/* -------------------- Page-Specific Tweaks (id on <main>) -------------------- */
#home .site-title {
  color: #f3a025;
}

#inside .site-title {
  color: var(--green-ink);
}

#inside .rule {
  border-top-color: var(--tan-400);
}

/* -------------------- Responsive Touch-up -------------------- */
@media (min-width: 720px) {
  .thumb img {
    max-width: 40%;
  }
}
