/* Change these colors to give the page your own look. */
:root {
  --green: #0f1f38;
  --ink: #0d1b2e;
  --muted: #5a7a9a;
  --accent: #2dd4c8;
  --paper: #f0f4f8;
  --line: #c8dae8;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  width: 100%;
  object-fit: cover;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
}
a:focus-visible {
  outline: 3px solid #2dd4c8;
  outline-offset: 6px;
}
::selection {
  color: var(--green);
  background: var(--accent);
}
.container {
  width: min(1180px, calc(100% - 64px));
  margin-inline: auto;
}
.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 10;
  padding: 12px 20px;
  color: white;
  background: var(--green);
}
.skip-link:focus {
  top: 12px;
}

/* Navigation */
.header {
  min-height: 108px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-name {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 2rem;
  letter-spacing: 0.09em;
}
.brand-subtitle {
  margin-top: 6px;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 36px;
  font-size: 0.875rem;
}
.nav a {
  padding-block: 8px;
}
.nav a:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}
.nav .contact-link {
  padding: 10px 22px;
  border: 1px solid var(--green);
  border-radius: 3px;
}

/* Intro: an editorial split between the title and a large photograph. */
.hero {
  width: min(1376px, calc(100% - 32px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--green);
  color: white;
}
.hero-copy {
  padding: clamp(38px, 5.3vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.hero .eyebrow {
  color: var(--accent);
  margin-bottom: 30px;
}
h1 {
  font-size: clamp(3rem, 5.5vw, 5.25rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}
h1 em {
  color: var(--accent);
  font-weight: 400;
}
.hero-description {
  max-width: 350px;
  margin-top: 28px;
  color: #d0ddd5;
  line-height: 1.8;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
  margin-top: 34px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  background: var(--accent);
  color: var(--green);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 3px;
  transition: background 0.2s;
}
.button:hover {
  background: #1fc8bc;
}
.text-link {
  font-size: 0.875rem;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}
.text-link:hover {
  opacity: 0.8;
}
.hero-note {
  margin-top: 58px;
  color: #7aa0c0;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}
.hero-photo {
  position: relative;
  min-height: 620px;
  overflow: hidden;
}
.hero-photo img {
  height: 100%;
  position: absolute;
  inset: 0;
}
.hero-photo figcaption {
  position: absolute;
  bottom: 22px;
  left: 22px;
  right: 22px;
  padding: 11px 15px;
  width: fit-content;
  max-width: calc(100% - 44px);
  background: rgba(10, 20, 40, 0.82);
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.07em;
}

/* Photo gallery */
.work {
  padding-block: 88px 86px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 32px;
}
.section-heading .eyebrow {
  color: var(--muted);
  margin-bottom: 10px;
}
h2 {
  font-size: clamp(2.25rem, 3.5vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}
.section-intro {
  max-width: 310px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.8;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.photo-link {
  display: block;
  overflow: hidden;
  background: #e7ece6;
}
.photo-link img {
  height: auto;
  aspect-ratio: 4 / 5;
  transition: transform 0.4s ease;
}
.photo-link:hover img {
  transform: scale(1.035);
}
.gallery figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 17px;
}
.gallery h3 {
  font-size: 1rem;
  font-weight: 500;
}
.photo-category {
  color: var(--muted);
  font-size: 0.75rem;
}

/* About and contact */
.about {
  border-top: 1px solid var(--line);
  padding-block: 64px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
}
.about .eyebrow {
  color: var(--muted);
  margin-bottom: 15px;
}
.about h2 {
  max-width: 360px;
  font-size: clamp(2rem, 3vw, 2.8rem);
}
.about-copy {
  color: var(--muted);
}
.about-copy p + p {
  margin-top: 16px;
}
.signature {
  display: block;
  margin-top: 20px;
  color: var(--ink);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.75rem;
  font-style: italic;
}
.contact {
  margin-top: 16px;
  padding: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 36px;
  background: #e2edf5;
}
.contact .eyebrow {
  color: var(--muted);
  margin-bottom: 14px;
}
.contact h2 {
  max-width: 580px;
  font-size: clamp(2rem, 3.2vw, 3rem);
}
.contact p {
  margin-top: 18px;
  color: var(--muted);
}
.contact .button {
  background: var(--green);
  color: white;
  white-space: nowrap;
}
.contact .button:hover {
  background: #1a3255;
}
.footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-block: 30px;
  color: var(--muted);
  font-size: 0.75rem;
}
.footer a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Keep every section comfortable to read on phones and tablets. */
@media (max-width: 900px) {
  .hero-copy {
    padding: 38px 30px;
  }
  .hero-photo {
    min-height: 560px;
  }
  .hero-note {
    margin-top: 36px;
  }
  .nav {
    gap: 24px;
  }
  .gallery {
    gap: 18px;
  }
  .gallery figcaption {
    flex-direction: column;
    gap: 1px;
  }
  .about {
    gap: 36px;
  }
  .contact {
    padding: 38px;
  }
}
@media (max-width: 650px) {
  .container {
    width: calc(100% - 40px);
  }
  .header {
    min-height: 96px;
    gap: 16px;
  }
  .brand-name {
    font-size: 1.6rem;
  }
  .brand-subtitle {
    font-size: 0.75rem;
    letter-spacing: 0.11em;
  }
  .nav {
    gap: 16px;
  }
  .nav .contact-link {
    padding: 8px 0;
    border: 0;
  }
  .hero {
    width: calc(100% - 24px);
    grid-template-columns: 1fr;
  }
  .hero-copy {
    padding: 42px 28px;
  }
  h1 {
    font-size: clamp(3.1rem, 12vw, 4rem);
  }
  .hero .eyebrow {
    margin-bottom: 22px;
  }
  .hero-description {
    max-width: 100%;
    margin-top: 22px;
  }
  .hero-note {
    margin-top: 30px;
  }
  .hero-photo {
    min-height: 360px;
  }
  .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .section-intro {
    max-width: 100%;
  }
  .work {
    padding-block: 56px;
  }
  .gallery {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .photo-link img {
    aspect-ratio: 4 / 4.3;
  }
  .gallery figcaption {
    flex-direction: row;
  }
  .about {
    grid-template-columns: 1fr;
    padding-block: 40px;
    gap: 24px;
  }
  .about h2 {
    max-width: 100%;
  }
  .contact {
    padding: 34px 26px;
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
  }
  .footer {
    padding-block: 26px;
  }
}
@media (max-width: 360px) {
  .header {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 18px;
  }
  .nav {
    width: 100%;
    justify-content: space-between;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

/* Shared forms and the public conversation */
[hidden] {
  display: none !important;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #2dd4c8;
  outline-offset: 3px;
}
input,
textarea,
select {
  display: block;
  width: 100%;
  min-width: 0;
  border: 1px solid #b0c8dc;
  border-radius: 4px;
  padding: 10px 12px;
  background: white;
  color: var(--ink);
  line-height: 1.5;
}
textarea {
  resize: vertical;
}
label {
  display: grid;
  gap: 7px;
  font-size: 0.875rem;
  font-weight: 600;
}
.form-hint {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 400;
}
.button.small {
  padding: 9px 16px;
}
.quiet-button,
.like-button {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 7px 12px;
  font-size: 0.875rem;
}
.quiet-button:hover,
.like-button:hover {
  background: #ddeef8;
}
.like-button[aria-pressed='true'] {
  color: #9e304b;
  border-color: #dba7b4;
  background: #fcf1f4;
}
.photo-card {
  min-width: 0;
}
.photo-caption {
  margin-top: 10px;
  font-size: 0.875rem;
  color: var(--muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.photo-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.inline-status,
.form-status {
  font-size: 0.875rem;
  color: #7a372e;
  overflow-wrap: anywhere;
}
.inline-status:empty,
.form-status:empty {
  display: none;
}
.inline-status {
  margin-block: 10px;
}
.comments {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.comments summary {
  cursor: pointer;
  font-size: 0.875rem;
}
.comment-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}
.comment {
  border-bottom: 1px solid var(--line);
  padding-block: 12px;
  font-size: 0.875rem;
}
.comment p,
.comment-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.comment-heading {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.comment-heading time {
  font-size: 0.75rem;
  color: var(--muted);
}
.comment-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}
.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.journal {
  padding-block: 20px 80px;
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.article-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.article-card img {
  aspect-ratio: 3/2;
  height: auto;
}
.article-card h3 {
  font:
    1.75rem/1.2 Georgia,
    serif;
}
.article-card p {
  color: var(--muted);
}
.article-card .text-link {
  margin-top: auto;
}
#about-title {
  white-space: pre-line;
}
.reading-width {
  width: min(760px, calc(100% - 40px));
  margin: 50px auto 80px;
}
.article-title {
  margin-block: 18px 26px;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  overflow-wrap: anywhere;
}
.article-excerpt {
  font-size: 1.25rem;
  color: var(--muted);
}
.article-cover {
  margin-block: 36px;
  max-height: 560px;
  height: auto;
}
.article-body {
  margin-block: 40px;
  font:
    1.2rem/1.85 Georgia,
    serif;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.article-body p + p {
  margin-top: 24px;
}
/* The private studio */
.studio-background {
  background: #f4f6f2;
}
.studio-shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
}
.studio-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--green);
  color: white;
  padding: 38px 24px;
}
.studio-brand {
  font:
    2rem Georgia,
    serif;
  letter-spacing: 0.04em;
}
.studio-brand span {
  display: block;
  margin-top: 8px;
  font:
    0.75rem Arial,
    sans-serif;
  letter-spacing: 0.17em;
  color: var(--accent);
}
.sidebar-caption {
  color: #c6d7cc;
  margin-block: 25px 42px;
  font-size: 0.875rem;
}
.studio-sidebar nav {
  display: grid;
  gap: 8px;
}
.studio-sidebar button {
  background: transparent;
  border: 0;
  color: white;
  text-align: left;
  padding: 12px 15px;
  border-radius: 4px;
}
.studio-sidebar button[aria-current='page'],
.studio-sidebar button:hover {
  background: #1a3255;
}
.sidebar-bottom {
  display: grid;
  gap: 8px;
  margin-top: auto;
  font-size: 0.875rem;
}
.sidebar-bottom a {
  padding: 12px 15px;
}
.studio-main {
  width: min(1220px, 100%);
  margin-inline: auto;
  padding: 48px clamp(24px, 4vw, 65px) 80px;
}
.studio-heading {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
}
.studio-heading .eyebrow {
  color: var(--muted);
  margin-bottom: 14px;
}
.studio-heading h1 {
  font-size: clamp(2.2rem, 3.5vw, 3.3rem);
}
.studio-heading p:last-child {
  color: var(--muted);
  margin-top: 16px;
}
.private-badge {
  padding: 6px 12px;
  font-size: 0.75rem;
  background: #d6eaf5;
  color: var(--green);
  white-space: nowrap;
}
.studio-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-block: 36px;
  background: white;
  border: 1px solid var(--line);
}
.stat {
  padding: 20px 24px;
  display: grid;
  gap: 4px;
  border-right: 1px solid var(--line);
}
.stat:last-child {
  border: 0;
}
.stat strong {
  font:
    2rem Georgia,
    serif;
}
.stat span {
  font-size: 0.8125rem;
  color: var(--muted);
}
.admin-status:not(:empty) {
  margin-bottom: 24px;
  background: #d6f0f0;
  padding: 14px 18px;
  border-left: 3px solid #2dd4c8;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}
.panel-heading h2 {
  font-size: 2rem;
}
.panel-heading p {
  color: var(--muted);
  font-size: 0.875rem;
  margin-top: 8px;
}
.panel-heading .button {
  white-space: nowrap;
  background: var(--green);
  color: white;
}
.editor-form {
  display: grid;
  gap: 22px;
  padding: 30px;
  background: white;
  border: 1px solid var(--line);
  margin-bottom: 32px;
  scroll-margin-top: 24px;
}
.editor-form h3 {
  font:
    1.5rem Georgia,
    serif;
}
.editor-form .button,
.login-card .button {
  justify-self: start;
  background: var(--green);
  color: white;
}
.form-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.form-actions,
.row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.upload-preview {
  width: 220px;
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
  object-position: left;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.check-label input {
  width: 18px;
}
.manage-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.manage-photo {
  background: white;
  border: 1px solid var(--line);
  overflow: hidden;
}
.manage-photo > img {
  height: auto;
  aspect-ratio: 4/3;
}
.manage-photo-info {
  padding: 18px;
}
.manage-photo h3 {
  font-size: 1rem;
  margin-block: 10px 8px;
  overflow-wrap: anywhere;
}
.manage-photo p {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 18px;
}
.status-tag {
  font-size: 0.75rem;
  color: var(--green);
  padding: 4px 8px;
  background: #d6eaf5;
}
.manage-list {
  display: grid;
  gap: 16px;
}
.manage-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  background: white;
  border: 1px solid var(--line);
  padding: 24px;
}
.manage-row > div:first-child {
  min-width: 0;
}
.manage-row h3 {
  font-size: 1rem;
  margin-block: 12px 8px;
  overflow-wrap: anywhere;
}
.manage-row p {
  color: var(--muted);
  font-size: 0.875rem;
}
.manage-row .row-actions {
  flex-shrink: 0;
}
.danger {
  color: #a03932;
}
.empty-state {
  background: white;
  border: 1px dashed #90bcd8;
  padding: 40px;
  color: var(--muted);
  grid-column: 1/-1;
}
.narrow-form {
  max-width: 650px;
}
.login-card {
  width: min(490px, calc(100% - 40px));
  margin: 10vh auto;
  padding: 40px;
  background: white;
  border: 1px solid var(--line);
  border-top: 4px solid var(--green);
}
.login-card h1 {
  font-size: 2.5rem;
  margin-block: 30px 18px;
}
.login-card > p {
  color: var(--muted);
}
.login-card form {
  display: grid;
  gap: 22px;
  margin-block: 30px;
}
@media (max-width: 1000px) {
  .studio-shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .studio-sidebar {
    padding: 30px 15px;
  }
  .manage-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .studio-heading {
    flex-direction: column;
    gap: 18px;
  }
  .stat {
    padding: 18px 14px;
  }
  .manage-row {
    flex-direction: column;
  }
}
@media (max-width: 650px) {
  .header {
    flex-wrap: wrap;
    padding-block: 20px;
  }
  .nav {
    gap: 16px;
  }
  .article-grid {
    grid-template-columns: 1fr;
  }
  .studio-shell {
    display: block;
  }
  .studio-sidebar {
    position: static;
    height: auto;
    padding: 24px 20px;
  }
  .studio-brand {
    font-size: 1.5rem;
  }
  .sidebar-caption {
    display: none;
  }
  .studio-sidebar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 22px;
  }
  .studio-sidebar button {
    padding: 9px 10px;
    font-size: 0.875rem;
  }
  .sidebar-bottom {
    display: flex;
    flex-wrap: wrap;
    margin-top: 14px;
  }
  .sidebar-bottom a {
    padding: 9px 10px;
  }
  .studio-main {
    padding: 30px 20px 50px;
  }
  .studio-stats {
    grid-template-columns: repeat(2, 1fr);
    margin-block: 26px;
  }
  .stat {
    border-bottom: 1px solid var(--line);
  }
  .stat:nth-child(2) {
    border-right: 0;
  }
  .stat:nth-child(3) {
    border-bottom: 0;
  }
  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
  .manage-photo-grid,
  .form-columns {
    grid-template-columns: 1fr;
  }
  .editor-form {
    padding: 22px;
  }
  .login-card {
    padding: 28px;
  }
}
#contact-details {
  margin-top: 1rem;
}
.contact-email-wrap {
  margin-bottom: 0.5rem;
}
.contact-phone-wrap {
  margin: 0;
}

/* Expandable gallery controls. */
#toggle-photos,
.photo-caption {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.caption-toggle {
  display: block;
  background: none;
  border: none;
  padding: 0;
  margin: 8px 0 16px;
  color: var(--green, #183c32);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.caption-toggle:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

#toggle-articles {
  display: block;
  margin: 32px auto 0;
  cursor: pointer;
}

.studio-stats {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.article-author {
  margin: 12px 0 24px;
  font-size: 0.95rem;
  color: var(--muted, #666);
  overflow-wrap: anywhere;
}

.article-card .article-card-author {
  margin: 6px 0 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted, #666);
}

.article-reactions {
  margin: 24px 0;
}

.photo-heading {
  min-width: 0;
}

.photo-heading .photo-author {
  margin: 6px 0 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted, #666);
  overflow-wrap: anywhere;
}
