@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;1,400&family=Cinzel:wght@400;500&family=IM+Fell+English:ital@0;1&display=swap');

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

html {
  font-size: 16px;
}

body {
  font-family: 'Cormorant Garamond', serif;
  background: #ede6f5;
  color: #3a2a4a;
  min-height: 100vh;
}

a {
  color: #5a3e6b;
  text-decoration: none;
}

a:hover {
  color: #3a2050;
  border-bottom: 1px solid #c9b8d8;
}

/* Layout */
.site-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

/* Header */
.site-header {
  text-align: center;
  padding: 1.5rem 1rem 1rem;
  border: 1px solid #c9b8d8;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  background: rgba(255,255,255,0.35);
}

.site-title {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  font-weight: 500;
  color: #5a3e6b;
  letter-spacing: 0.15em;
}

.site-title a {
  color: inherit;
  border: none;
}

.site-title a:hover {
  border: none;
  color: #3a2050;
}

.site-description {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 1rem;
  color: #8a6e9a;
  margin: 0.25rem 0 1rem;
}

.site-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

.site-nav a {
  color: #6b4d7e;
  border: none;
  padding: 0.2rem 0;
}

.site-nav a:hover {
  color: #3a2050;
  border-bottom: 1px solid #c9b8d8;
}

.header-ornament {
  text-align: center;
  color: #b89ac8;
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  margin: 0.5rem 0 0;
}

/* Body grid */
.site-body {
  display: grid;
  grid-template-columns: 200px 1fr 200px;
  border: 1px solid #c9b8d8;
  border-top: none;
  border-bottom: none;
  background: linear-gradient(160deg, #ede6f5 0%, #f5e8f0 50%, #e8f0e8 100%);
}

/* Sidebars */
.sidebar {
  padding: 1.25rem 1rem;
  background: rgba(255,255,255,0.2);
}

.sidebar-left {
  border-right: 1px solid #c9b8d8;
}

.sidebar-right {
  border-left: 1px solid #c9b8d8;
}

.sidebar-section {
  margin-bottom: 1.5rem;
}

.sidebar-heading {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #8a6e9a;
  margin-bottom: 0.6rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid #c9b8d8;
}

.sidebar-links {
  list-style: none;
}

.sidebar-links li a {
  display: block;
  font-family: 'IM Fell English', serif;
  font-size: 0.875rem;
  color: #5a3e6b;
  padding: 0.3rem 0;
  border-bottom: 1px dotted #c9b8d8;
  border-left: none;
}

.sidebar-links li:last-child a {
  border-bottom: none;
}

.sidebar-links li a:hover {
  color: #3a2050;
  border-bottom: 1px dotted #9a7eaa;
  border-left: none;
}

/* Radio propagation widget */
.prop-widget {
  background: rgba(255,255,255,0.3);
  border: 1px solid #c9b8d8;
  border-radius: 6px;
  padding: 0.75rem;
  margin-top: 0.5rem;
}

.prop-heading {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a6e9a;
  margin-bottom: 0.5rem;
}

.prop-row {
  display: flex;
  justify-content: space-between;
  font-family: 'IM Fell English', serif;
  font-size: 0.75rem;
  color: #5a4468;
  padding: 2px 0;
}

.prop-good { color: #3a6a4a; }
.prop-fair { color: #7a5a10; }
.prop-poor { color: #8a2a2a; }
.prop-closed { color: #9a3a3a; font-style: italic; }

.prop-divider {
  border: none;
  border-top: 1px dotted #c9b8d8;
  margin: 0.4rem 0;
}

/* Main content area */
.site-main {
  padding: 1.5rem;
  min-width: 0;
}

/* Intro block */
.site-intro {
  background: rgba(255,255,255,0.4);
  border: 1px solid #c9b8d8;
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.site-intro h2 {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5a3e6b;
  margin-bottom: 0.5rem;
}

.site-intro p {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: #7a5e8a;
  line-height: 1.7;
}

/* Posts */
.posts-heading {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #8a6e9a;
  margin-bottom: 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid #c9b8d8;
}

.post-card {
  background: rgba(255,255,255,0.4);
  border: 1px solid #c9b8d8;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  transition: background 0.2s;
}

.post-card:hover {
  background: rgba(255,255,255,0.6);
}

.post-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: #4a2e5b;
  margin-bottom: 0.2rem;
}

.post-card-title a {
  color: inherit;
  border: none;
}

.post-card-title a:hover {
  color: #2a1040;
  border: none;
}

.post-card-meta {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 0.75rem;
  color: #9a7eaa;
  margin-bottom: 0.5rem;
}

.post-card-excerpt {
  font-size: 0.9rem;
  color: #6a5478;
  line-height: 1.6;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 0.875rem;
  color: #8a6e9a;
}

.pagination a {
  color: #5a3e6b;
  border: none;
}

/* Single post */
.post-full {
  background: rgba(255,255,255,0.4);
  border: 1px solid #c9b8d8;
  border-radius: 6px;
  padding: 1.5rem 2rem;
}

.post-full-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 500;
  color: #4a2e5b;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.post-full-meta {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 0.85rem;
  color: #9a7eaa;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #c9b8d8;
}

.post-full-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #3a2a4a;
}

.post-full-content h1,
.post-full-content h2,
.post-full-content h3 {
  font-family: 'Cinzel', serif;
  font-weight: 500;
  color: #5a3e6b;
  margin: 1.5rem 0 0.75rem;
}

.post-full-content h2 { font-size: 1.3rem; }
.post-full-content h3 { font-size: 1.1rem; }

.post-full-content p {
  margin-bottom: 1rem;
}

.post-full-content a {
  color: #5a3e6b;
  border-bottom: 1px dotted #c9b8d8;
}

.post-full-content blockquote {
  border-left: 3px solid #c9b8d8;
  padding-left: 1rem;
  font-style: italic;
  color: #7a6080;
  margin: 1rem 0;
}

.post-full-content img {
  max-width: 100%;
  border-radius: 6px;
  border: 1px solid #c9b8d8;
  margin: 1rem 0;
}

.post-full-content pre {
  background: rgba(255,255,255,0.5);
  border: 1px solid #c9b8d8;
  border-radius: 4px;
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.85rem;
}

/* Page (static) */
.page-full {
  background: rgba(255,255,255,0.4);
  border: 1px solid #c9b8d8;
  border-radius: 6px;
  padding: 1.5rem 2rem;
}

.page-full-title {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: #5a3e6b;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #c9b8d8;
}

.page-full-content {
  font-size: 1rem;
  line-height: 1.8;
  color: #3a2a4a;
}

.page-full-content p { margin-bottom: 1rem; }
.page-full-content h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: #5a3e6b;
  margin: 1.5rem 0 0.5rem;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 0.75rem;
  border: 1px solid #c9b8d8;
  border-top: none;
  border-radius: 0 0 8px 8px;
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 0.75rem;
  color: #9a7eaa;
  background: rgba(255,255,255,0.2);
}

.kg-width-wide {
  margin-left: -2rem;
  margin-right: -2rem;
}

.kg-width-full {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Responsive */
@media (max-width: 800px) {
  .site-body {
    grid-template-columns: 1fr;
  }
  .sidebar-left {
    border-right: none;
    border-bottom: 1px solid #c9b8d8;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
  }
  .sidebar-right {
    border-left: none;
    border-top: 1px solid #c9b8d8;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
  }
  .sidebar-section {
    flex: 1;
    min-width: 140px;
  }
}

/* Bookmarks page */
.bookmarks-page {
  background: rgba(255,255,255,0.4);
  border: 1px solid #c9b8d8;
  border-radius: 6px;
  padding: 1.5rem 2rem;
}

.bm-status {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 0.9rem;
  color: #9a7eaa;
  text-align: center;
  padding: 2rem 0;
}

.bm-error { color: #8a2a2a; }

.bm-empty {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  color: #9a7eaa;
  text-align: center;
  padding: 1rem 0;
}

.bm-category {
  margin-bottom: 2rem;
}

.bm-category-heading {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #8a6e9a;
  margin-bottom: 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid #c9b8d8;
}

.bm-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.65rem;
}

.bm-item {
  background: rgba(255,255,255,0.5);
  border: 1px solid #c9b8d8;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  transition: background 0.2s;
}

.bm-item:hover {
  background: rgba(255,255,255,0.75);
}

.bm-title {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 500;
  color: #4a2e5b;
  border: none;
  margin-bottom: 0.2rem;
  line-height: 1.4;
}

.bm-title:hover {
  color: #2a1040;
  border: none;
}

.bm-desc {
  font-family: 'IM Fell English', serif;
  font-size: 0.8rem;
  color: #7a5e8a;
  line-height: 1.5;
  margin-bottom: 0.35rem;
  font-style: italic;
}

.bm-domain {
  font-family: 'IM Fell English', serif;
  font-size: 0.7rem;
  color: #b89ac8;
  font-style: italic;
}

/* ── Projects page ─────────────────────────────────────────────────────────── */

.proj-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.proj-item {
  padding: .75rem 0;
  border-bottom: 1px solid #e8e0f0;
}

.proj-item:last-child {
  border-bottom: none;
}

.proj-item-header {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  margin-bottom: .3rem;
  flex-wrap: wrap;
}

.proj-name {
  font-family: 'Cinzel', serif;
  font-size: .85rem;
  letter-spacing: .04em;
  color: #5a3e6b;
  text-decoration: none;
}

a.proj-name:hover {
  text-decoration: underline;
}

.proj-status {
  font-family: 'Cinzel', serif;
  font-size: .55rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .15rem .5rem;
  border-radius: 3px;
  border: 1px solid;
}

.proj-status-active    { background: #e8f5e8; color: #2a6a3a; border-color: #a0d4a0; }
.proj-status-complete  { background: #e8edf5; color: #2a3a6a; border-color: #a0b4d4; }
.proj-status-abandoned { background: #fde8e8; color: #8a2a2a; border-color: #d4a0a0; }
.proj-status-on-hold   { background: #fdf5e8; color: #6a4a2a; border-color: #d4c0a0; }

.proj-desc {
  font-size: .95rem;
  line-height: 1.6;
  color: #4a3a5a;
  margin-bottom: .4rem;
}

.proj-meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}

.proj-meta-item {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: .8rem;
  color: #9a7eaa;
  text-decoration: none;
}

a.proj-meta-item:hover {
  color: #5a3e6b;
  text-decoration: underline;
}

.proj-meta-sep {
  color: #c9b8d8;
  font-size: .7rem;
}

/* ── Guestbook ─────────────────────────────────────────────────────────────── */

.gb-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-bottom: 1rem;
}

.gb-form-full { grid-column: 1 / -1; }

.gb-form-field { display: flex; flex-direction: column; }

.gb-label {
  font-family: 'Cinzel', serif;
  font-size: .6rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8a6e9a;
  margin-bottom: .3rem;
}

.gb-required { color: #c9a0a0; }

.gb-input {
  padding: .45rem .65rem;
  border: 1px solid #c9b8d8;
  border-radius: 4px;
  background: rgba(255,255,255,.6);
  font-family: 'Cormorant Garamond', serif;
  font-size: .95rem;
  color: #3a2a4a;
  outline: none;
  width: 100%;
}

.gb-input:focus { border-color: #8a6e9a; }

.gb-textarea {
  resize: vertical;
  min-height: 90px;
}

.gb-submit {
  font-family: 'Cinzel', serif;
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .5rem 1.25rem;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid #5a3e6b;
  background: #5a3e6b;
  color: #ede6f5;
  transition: background .2s;
}

.gb-submit:hover { background: #3a2050; }
.gb-submit:disabled { opacity: .6; cursor: default; }

.gb-divider {
  border: none;
  border-top: 1px solid #e0d0ec;
  margin: 2rem 0;
}

.gb-entry {
  padding: .85rem 0;
  border-bottom: 1px solid #e8e0f0;
}

.gb-entry:last-child { border-bottom: none; }

.gb-entry-header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: .4rem;
}

.gb-entry-name {
  font-family: 'Cinzel', serif;
  font-size: .8rem;
  letter-spacing: .04em;
  color: #5a3e6b;
}

.gb-entry-meta {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: .78rem;
  color: #9a7eaa;
}

.gb-entry-url {
  color: #9a7eaa;
  text-decoration: none;
}

.gb-entry-url:hover { color: #5a3e6b; text-decoration: underline; }

.gb-entry-message {
  font-size: .95rem;
  line-height: 1.6;
  color: #4a3a5a;
}


/* ============================================
   WEATHER PAGE
   ============================================ */

.weather-page {
  padding: 0;
}

.weather-page .page-header {
  margin-bottom: 1.25rem;
}

.weather-page .page-location {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 0.85rem;
  color: #9a7eaa;
  margin-top: 0.25rem;
}

.wx-section-heading {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7a5a8a;
  border-bottom: 1px solid #d4c8e0;
  padding-bottom: 4px;
  margin: 1rem 0 0.6rem;
}

.wx-ornament {
  color: #c9b8d8;
  font-size: 0.75rem;
  text-align: center;
  margin: 1rem 0;
}

/* Verdict banner */
.wx-verdict-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #d4c8e0;
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 1rem;
}

.wx-verdict-icon { font-size: 1.3rem; }

.wx-verdict-text {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 0.9rem;
  color: #4a3a5a;
}

/* Cards grid */
.wx-grid { display: grid; gap: 8px; margin-bottom: 8px; }
.wx-grid-2 { grid-template-columns: 1fr 1fr; }
.wx-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.wx-grid-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }

@media (max-width: 700px) {
  .wx-grid-4 { grid-template-columns: 1fr 1fr; }
  .wx-grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
  .wx-grid-2,
  .wx-grid-3,
  .wx-grid-4 { grid-template-columns: 1fr; }
}

.wx-card {
  background: #fff;
  border: 1px solid #d4c8e0;
  border-radius: 6px;
  padding: 9px 11px;
}

.wx-card-fog {
  background: #f7f0fc;
  border-color: #c9b8d8;
}

.wx-card-label {
  font-family: 'Cinzel', serif;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9a7eaa;
  margin-bottom: 3px;
}

.wx-card-val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  color: #3a2a4a;
  font-weight: 500;
  line-height: 1.15;
}

.wx-card-val-sm {
  font-size: 1rem;
  line-height: 1.3;
}

.wx-card-sub {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 0.72rem;
  color: #9a7eaa;
  margin-top: 2px;
}

.wx-card-sub2 {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 0.65rem;
  color: #b8a0c8;
  margin-top: 1px;
}

/* Pressure trend colours */
.wx-trend-rising  { color: #4a7a5a; }
.wx-trend-falling { color: #7a4a4a; }
.wx-trend-steady  { color: #9a7eaa; }

/* Tide chart */
.wx-tide-wrap {
  background: #fff;
  border: 1px solid #d4c8e0;
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 8px;
}

.wx-tide-svg {
  width: 100%;
  height: 80px;
  display: block;
}

.wx-tide-labels {
  display: flex;
  justify-content: space-between;
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 0.68rem;
  color: #9a7eaa;
  margin-top: 4px;
}

.wx-tide-times {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 0.78rem;
  color: #7a5a8a;
  line-height: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0 1rem;
}

/* Moon */
.wx-moon-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid #d4c8e0;
  border-radius: 6px;
  padding: 10px 12px;
}

.wx-moon-icon { font-size: 1.8rem; line-height: 1; }

.wx-moon-phase {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: #3a2a4a;
  font-weight: 500;
}

/* Updated note */
.wx-updated {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 0.7rem;
  color: #b8a0c8;
  text-align: center;
  margin-top: 1.25rem;
  padding-top: 0.5rem;
  border-top: 1px solid #e8e0f0;
}

/* ============================================
   WEATHER SIDEBAR WIDGET
   ============================================ */

.wx-sidebar-widget { margin-top: 0; }

.wx-sidebar-main {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.wx-sidebar-icon { font-size: 1.3rem; line-height: 1; }

.wx-sidebar-temp {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  color: #3a2a4a;
  font-weight: 500;
  line-height: 1;
}

.wx-sidebar-desc {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 0.75rem;
  color: #7a5a8a;
  margin-bottom: 2px;
}

.wx-sidebar-sub {
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 0.7rem;
  color: #9a7eaa;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 7px;
}

.wx-sidebar-link {
  display: block;
  font-family: 'IM Fell English', serif;
  font-style: italic;
  font-size: 0.72rem;
  color: #7a5a8a;
  border-top: 1px solid #d4c8e0;
  padding-top: 5px;
  margin-top: 3px;
  text-decoration: none;
}

.wx-sidebar-link:hover {
  color: #4a2a6a;
  border-bottom: none;
}

.post-card-content p {
  margin-bottom: 1.2rem;
}