/* styles for crabdogduck.neocities.org */
/* last updated march 2026 */

@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,400;0,600;0,700;1,400&family=Pacifico&family=Quicksand:wght@400;500;600;700&family=Barriecito&family=Source Serif 4:wght@wght@0,400;0,600;0,700&display=swap');

:root {
  --amber:         #ffb300;
  --amber-light:   #ffcf4d;
  --orange:        #f96a00;
  --orange-deep:   #d94f00;
  --orange-light:  #ffac5c;
  --cream:         #fff8ec;
  --text:          #3d1a00;
  --text-mid:      #7a3d00;
  --text-soft:     #b87030;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  color: var(--text);
  background-color: #f97a00;
  background-image: url('images/abstractpixabay.jpg');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  min-height: 100vh;
  line-height: 1.7;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(180,60,0,0.26);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--orange-deep); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--orange); }
img { max-width: 100%; display: block; }

/* panels */
.glass {
  background: rgba(255,248,230,0.85);
  border: 2px solid rgba(255,200,80,0.6);
  border-radius: 14px;
  box-shadow: 3px 3px 0px rgba(180,80,0,0.15);
}

.panel-title {
  font-family: 'Barriecito', cursive;
  font-size: 15px;
  color: var(--orange-deep);
  border-bottom: 1px solid rgba(255,180,60,0.4);
  padding-bottom: 8px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 2;
}

.page-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 14px 12px 48px;
  position: relative;
  z-index: 1;
}

/* ── HEADER ── */
.site-header {
  border-radius: 18px;
  border: 2px solid rgba(255,210,90,0.7);
  box-shadow: 4px 4px 0px rgba(180,70,0,0.2);
  margin-bottom: 10px;
  overflow: hidden;
  position: relative;
  height: 200px;
}

.header-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/istock.jpg');
  background-size: cover;
  background-position: center 40%;
  z-index: 0;
}

.header-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(220,100,0,0.32);
}

.header-splash {
  position: absolute;
  right: -30px;
  bottom: -20px;
  width: 280px;
  opacity: 0.78;
  z-index: 2;
  pointer-events: none;
  transform: scaleX(-1) rotate(-8deg);
}

.header-text {
  position: absolute;
  left: 36px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
}

.header-text h1 {
  font-family: 'Barriecito', cursive;
  font-size: clamp(28px, 5.5vw, 50px);
  color: #fff;
  text-shadow: 2px 2px 0px rgba(180,70,0,0.5);
  line-height: 1.15;
}

.header-text .tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.9);
  margin-top: 5px;
  font-style: italic;
}

.header-deco {
  margin-top: 8px;
  font-size: 17px;
  letter-spacing: 4px;
}

/* ── NAV ── */
nav.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 14px;
  padding: 9px 14px;
  background: rgba(255,240,200,0.75);
  border: 2px solid rgba(255,190,70,0.6);
  border-radius: 30px;
  box-shadow: 2px 2px 0px rgba(180,80,0,0.12);
}

nav.main-nav a {
  font-family: 'Source Serif 4', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  background: #e86000;
  border: 1px solid #c04a00;
  border-radius: 20px;
  padding: 5px 16px;
  text-decoration: none;
  transition: background 0.15s;
}

nav.main-nav a:hover {
  background: #ff7a1a;
  text-decoration: none;
  color: #fff;
}

nav.main-nav a.active {
  background: #b84000;
}

/* ── LAYOUT ── */
.layout {
  display: grid;
  grid-template-columns: 224px 1fr;
  gap: 14px;
  align-items: start;
}

/* ── SIDEBAR ── */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 11px;
  position: sticky;
  top: 0px;
}

.sidebar > * { position: relative; z-index: 2; }
.sidebar-panel { padding: 13px 15px; }
.sidebar-panel > * { position: relative; z-index: 2; }

.about-box { padding: 16px; }
.about-box > * { position: relative; z-index: 2; }

.avatar-wrap {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid rgba(255,200,80,0.7);
  box-shadow: 3px 3px 0px rgba(180,80,0,0.15);
  margin-bottom: 11px;
  background: #ffd080;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
}

.avatar-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.about-name {
  font-family: 'Barriecito', cursive;
  font-size: 18px;
  color: var(--orange-deep);
  text-align: center;
  margin-bottom: 3px;
}

.about-status {
  font-size: 12px;
  color: var(--text-mid);
  text-align: center;
  font-style: italic;
  margin-bottom: 9px;
}

.about-text {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.65;
}

/* counter */
.counter-display {
  background: rgba(255,200,80,0.25);
  border: 1px solid rgba(255,180,60,0.5);
  border-radius: 8px;
  padding: 8px 6px;
  text-align: center;
  margin-bottom: 5px;
}

.counter-digits {
  font-family: 'Courier New', monospace;
  font-size: 24px;
  font-weight: 700;
  color: var(--orange-deep);
  letter-spacing: 5px;
}

.counter-label {
  font-size: 11px;
  color: var(--text-soft);
  margin-top: 3px;
}

/* newsletter button */
.newsletter-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 9px 14px;
  background: #e86000;
  border: 1px solid #c04a00;
  border-radius: 20px;
  color: #fff;
  font-family: 'Source Serif 4', sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
  position: relative;
  z-index: 2;
}

.newsletter-btn:hover {
  background: #ff7a1a;
  text-decoration: none;
  color: #fff;
}

.newsletter-note {
  font-size: 11px;
  color: var(--text-soft);
  text-align: center;
  margin-top: 6px;
  line-height: 1.45;
  position: relative; z-index: 2;
}

/* resources list */
.resources-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  z-index: 2;
}

.resources-list li a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-mid);
  padding: 4px 6px;
  border-radius: 6px;
  transition: background 0.12s;
}

.resources-list li a:hover {
  background: rgba(255,200,80,0.3);
  color: var(--orange-deep);
  text-decoration: none;
}

.resources-list li a .res-icon { font-size: 13px; flex-shrink: 0; }

/* 88x31 buttons */
.buttons-wrap { display: flex; flex-wrap: wrap; gap: 4px; position: relative; z-index: 2; }

.btn88 {
  width: 88px; height: 31px;
  border-radius: 5px;
  border: 1px solid rgba(180,80,0,0.4);
  font-size: 10px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.25;
  text-decoration: none;
  color: #fff;
}

.btn88:hover { opacity: 0.85; text-decoration: none; color: #fff; }

.btn-a { background: #e87000; }
.btn-b { background: #d4a000; }
.btn-c { background: #d06000; }
.btn-d { background: #b85000; }

/* ── MAIN COLUMN ── */
.main-col {
  display: flex;
  flex-direction: column;
  gap: 13px;
  min-width: 0;
}

.content-panel {
  padding: 18px 20px;
  position: relative;
}

.content-panel > * { position: relative; z-index: 2; }

/* status scroll */
.status-scroll {
  max-height: 260px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(200,120,0,0.3) transparent;
  padding-right: 3px;
}

.status-scroll::-webkit-scrollbar { width: 4px; }
.status-scroll::-webkit-scrollbar-track { background: transparent; }
.status-scroll::-webkit-scrollbar-thumb {
  background: rgba(200,120,0,0.35);
  border-radius: 4px;
}

.status-list { display: flex; flex-direction: column; gap: 8px; }

.status-entry {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 9px 11px;
  background: rgba(255,255,255,0.5);
  border-radius: 10px;
  border: 1px solid rgba(255,190,70,0.4);
}

.status-entry:hover { background: rgba(255,255,255,0.68); }

.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
  margin-top: 7px;
}

.status-date {
  font-size: 11px;
  color: var(--text-soft);
  display: block;
  margin-bottom: 2px;
  font-style: italic;
}

.status-msg {
  font-size: 14px;
  color: var(--text);
  line-height: 1.55;
}

/* blog cards */
.blog-list { display: flex; flex-direction: column; gap: 12px; }

.blog-card {
  padding: 14px 16px;
  background: rgba(255,255,255,0.55);
  border-radius: 12px;
  border: 1px solid rgba(255,190,70,0.45);
  border-top: 3px solid var(--orange);
  transition: background 0.15s;
  position: relative;
}

.blog-card:hover { background: rgba(255,255,255,0.72); }

.blog-meta {
  font-size: 11px; color: var(--text-soft);
  font-style: italic; margin-bottom: 5px;
  display: flex; gap: 9px; align-items: center;
}

.blog-tag {
  background: rgba(255,160,40,0.2);
  color: var(--orange-deep);
  border-radius: 20px;
  padding: 1px 9px;
  font-size: 11px; font-style: normal; font-weight: 700;
  border: 1px solid rgba(255,150,30,0.4);
}

.blog-title {
  font-family: 'Source Serif 4', sans-serif;
  font-size: 16px; font-weight: 700;
  color: var(--text);
  margin-bottom: 5px; line-height: 1.3;
}

.blog-title a { color: inherit; }
.blog-title a:hover { color: var(--orange-deep); text-decoration: none; }

.blog-excerpt {
  font-size: 13px; color: var(--text-mid); line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.read-more {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  color: var(--orange-deep);
  margin-top: 8px;
  text-decoration: none;
}

.read-more:hover { text-decoration: underline; color: var(--orange); }

/* polaroid gallery */
.polaroid-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(138px, 1fr));
  gap: 28px 14px;
  padding: 12px 4px 6px;
  position: relative; z-index: 2;
}

.polaroid {
  background: #fffdf6;
  padding: 7px 7px 30px;
  border-radius: 2px;
  box-shadow: 3px 4px 8px rgba(120,50,0,0.2);
  cursor: pointer;
  position: relative;
}

.polaroid::before {
  content: '';
  position: absolute;
  top: -9px; left: 50%; transform: translateX(-50%);
  width: 40px; height: 17px;
  background: rgba(255,200,80,0.52);
  border-radius: 2px;
}

.polaroid:nth-child(odd)  { transform: rotate(-2.2deg); }
.polaroid:nth-child(even) { transform: rotate(1.8deg); }
.polaroid:nth-child(3n)   { transform: rotate(-0.8deg); }
.polaroid:nth-child(4n)   { transform: rotate(2.6deg); }

.polaroid:hover {
  transform: rotate(0deg) scale(1.06) !important;
  box-shadow: 4px 6px 14px rgba(120,50,0,0.28);
  z-index: 10;
  position: relative;
}

.polaroid-img {
  width: 100%; aspect-ratio: 1;
  object-fit: cover;
  background: #ffd080;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; overflow: hidden;
}

.polaroid-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.polaroid-caption {
  position: absolute;
  bottom: 6px; left: 0; right: 0;
  text-align: center;
  font-family: 'Barriecito', cursive;
  font-size: 10px; color: var(--text-soft);
  padding: 0 5px; line-height: 1.3;
}

/* lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(40,15,0,0.88);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.open { display: flex; }

.lightbox-inner {
  background: #fffdf6;
  padding: 10px 10px 42px;
  border-radius: 3px;
  max-width: 700px;
  width: 100%;
  position: relative;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.lightbox-inner img {
  width: 100%; height: auto;
  max-height: 70vh;
  object-fit: contain;
}

.lightbox-caption {
  position: absolute;
  bottom: 11px; left: 0; right: 0;
  text-align: center;
  font-family: 'Barriecito', cursive;
  font-size: 13px; color: var(--text-soft);
}

.lightbox-close {
  position: absolute;
  top: -13px; right: -13px;
  width: 30px; height: 30px;
  background: #e86000;
  border: 1px solid #c04000;
  border-radius: 50%;
  color: #fff; font-size: 16px;
  cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  font-family: 'Source Serif 4', sans-serif;
  font-weight: 700;
}

.lightbox-close:hover { background: #ff7a1a; }

/* footer */
.site-footer {
  text-align: center;
  margin-top: 22px;
  padding: 14px;
  font-size: 12px;
  color: rgba(255,235,190,0.9);
}

.site-footer a { color: var(--amber-light); }

.divider {
  text-align: center;
  color: rgba(255,200,80,0.55);
  margin: 2px 0 12px;
  letter-spacing: 7px;
  font-size: 15px;
}

/* season headings (photos page) */
.season-heading {
  font-family: 'Barriecito', cursive;
  font-size: 19px;
  color: var(--orange-deep);
  margin: 26px 0 6px;
  display: flex;
  align-items: center;
  gap: 9px;
  position: relative; z-index: 2;
}

.season-heading:first-child { margin-top: 0; }

/* mobile */
@media (max-width: 700px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }

  .about-box { display: flex; gap: 12px; align-items: flex-start; }
  .avatar-wrap { width: 72px; height: 72px; aspect-ratio: 1; flex-shrink: 0; margin-bottom: 0; font-size: 30px; }
  .about-name { text-align: left; font-size: 16px; }
  .about-status { text-align: left; }

  nav.main-nav {
    flex-wrap: nowrap; overflow-x: auto;
    justify-content: flex-start;
    padding: 7px 10px;
    scrollbar-width: none; -ms-overflow-style: none; gap: 5px;
  }
  nav.main-nav::-webkit-scrollbar { display: none; }
  nav.main-nav a { flex-shrink: 0; font-size: 12px; padding: 5px 12px; }

  .site-header { height: 155px; border-radius: 14px; }
  .header-text h1 { font-size: 26px; }
  .header-text { left: 18px; }
  .header-splash { width: 170px; right: -15px; bottom: -10px; }

  .polaroid-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 10px; }
  .content-panel { padding: 14px 13px; }
  .sidebar-panel { padding: 11px 12px; }
}

@media (min-width: 500px) and (max-width: 700px) {
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
  .about-box { grid-column: 1 / -1; }
}
