:root {
  color-scheme: light;
  --ink: #151b1f;
  --muted: #667179;
  --line: #d9dfdc;
  --paper: #f4f5f0;
  --white: #ffffff;
  --teal: #0d756f;
  --red: #a94739;
  --gold: #b77a20;
  --green: #526d3a;
  --blue: #2d536c;
  --shadow: 0 18px 42px rgba(21, 27, 31, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, #ffffff 0, var(--paper) 360px),
    var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(21, 27, 31, 0.1);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
}

.brand,
.top-nav,
.masthead,
.masthead-link,
.directory-top,
.search-row,
.file-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 850;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  place-items: center;
  color: var(--white);
  background: var(--ink);
  font-weight: 900;
}

.top-nav {
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.top-nav a {
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 7px 10px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
  text-decoration: none;
}

.top-nav a:hover {
  border-color: var(--line);
  color: var(--ink);
  background: var(--white);
}

main {
  overflow: hidden;
}

.masthead {
  justify-content: space-between;
  gap: clamp(24px, 6vw, 72px);
  padding: clamp(52px, 8vw, 96px) clamp(18px, 4vw, 56px) clamp(34px, 6vw, 68px);
}

.masthead-copy {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  line-height: 1.03;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(3.4rem, 9vw, 7.5rem);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
}

.masthead-copy p:last-child {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.masthead-link {
  flex: 0 0 min(100%, 360px);
  justify-content: space-between;
  gap: 18px;
  min-height: 104px;
  border: 1px solid rgba(13, 117, 111, 0.22);
  border-radius: 8px;
  padding: 20px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(13, 117, 111, 0.95), rgba(45, 83, 108, 0.88)),
    url("Sailing.jpg") center / cover;
  box-shadow: var(--shadow);
  text-decoration: none;
}

.masthead-link span {
  font-size: 1.55rem;
  font-weight: 900;
}

.masthead-link strong {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.masthead-link:hover {
  transform: translateY(-2px);
}

.directory-section,
.files-section {
  padding: clamp(38px, 6vw, 72px) clamp(18px, 4vw, 56px);
}

.directory-section {
  background: var(--white);
}

.directory-top {
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}

.search-panel {
  flex: 0 1 520px;
  margin: 0;
}

.search-panel label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.search-row {
  gap: 8px;
}

.search-row input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 13px;
  color: var(--ink);
  background: var(--white);
}

.search-row input:focus {
  outline: 3px solid rgba(13, 117, 111, 0.16);
  border-color: rgba(13, 117, 111, 0.58);
}

.search-row button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 15px;
  color: var(--white);
  background: var(--ink);
  cursor: pointer;
  font-weight: 850;
}

#result-count {
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 800;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.link-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 138px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--white);
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.link-card:hover {
  border-color: rgba(13, 117, 111, 0.46);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.link-card-feature {
  grid-column: span 2;
  background: #f7fbf9;
}

.thumb {
  display: grid;
  width: 92px;
  height: 92px;
  border-radius: 8px;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--blue);
  font-weight: 900;
}

.thumb-annapolis {
  background:
    linear-gradient(135deg, rgba(13, 117, 111, 0.7), rgba(169, 71, 57, 0.48)),
    url("Sailing.jpg") center / cover;
}

.thumb-drone {
  background:
    linear-gradient(135deg, rgba(45, 83, 108, 0.95), rgba(183, 122, 32, 0.78)),
    var(--blue);
}

.thumb-gallery {
  background:
    linear-gradient(135deg, rgba(21, 27, 31, 0.18), rgba(13, 117, 111, 0.32)),
    url("A1.png") center / cover;
}

.thumb-journal {
  background:
    linear-gradient(135deg, rgba(21, 27, 31, 0.12), rgba(183, 122, 32, 0.32)),
    url("Sailing.jpg") center / cover;
}

.thumb-studio {
  background:
    linear-gradient(135deg, rgba(21, 27, 31, 0.16), rgba(45, 83, 108, 0.38)),
    url("DriveMaster.jpg") center / cover;
}

.thumb-folder {
  background: var(--blue);
}

.thumb-photos {
  background: var(--green);
}

.link-copy {
  min-width: 0;
}

.kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--red);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.link-card strong,
.link-card small {
  display: block;
}

.link-card strong {
  margin-bottom: 4px;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.link-card small {
  overflow-wrap: anywhere;
  color: var(--muted);
}

.link-card.is-hidden {
  display: none;
}

.files-section {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  background: #eef2ee;
}

.file-links {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  max-width: 720px;
}

.file-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 13px;
  background: var(--white);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.file-links a:hover {
  border-color: rgba(13, 117, 111, 0.46);
  color: var(--teal);
}

@media (max-width: 980px) {
  .masthead,
  .directory-top,
  .files-section {
    align-items: stretch;
    flex-direction: column;
  }

  .masthead-link,
  .search-panel {
    flex-basis: auto;
  }

  .link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .link-card-feature {
    grid-column: span 2;
  }

  .file-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .top-nav {
    justify-content: flex-start;
  }

  .masthead {
    padding-top: 42px;
  }

  .search-row {
    align-items: stretch;
    flex-direction: column;
  }

  .link-grid {
    grid-template-columns: 1fr;
  }

  .link-card,
  .link-card-feature {
    grid-column: auto;
  }

  .link-card {
    grid-template-columns: 78px minmax(0, 1fr);
    min-height: 116px;
  }

  .thumb {
    width: 78px;
    height: 78px;
  }
}
